public interface FanSubscription
Modifier and Type | Method and Description |
---|---|
void |
addListener(FanEventListener listener)
Adds a listener.
|
void |
close()
Closes this subscription.
|
void |
removeListener(FanEventListener listener)
Removes a listener.
|
void addListener(FanEventListener listener)
listener
- the object to be added and notified of FAN events.java.lang.IllegalStateException
- if the recevier is closed.void removeListener(FanEventListener listener)
listener
- the object to be removed from the list of listeners.java.lang.IllegalArgumentException
- if the param is not present in the list of listeners.void close()