|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ObservableSubscription<T>
Observable subscription is a set subscription symbols for specific event types.
Method Summary | |
---|---|
void |
addChangeListener(ObservableSubscriptionChangeListener listener)
Adds subscription change listener. |
boolean |
containsEventType(java.lang.Class<?> eventType)
Returns true if this subscription contains the corresponding event type. |
java.util.Set<java.lang.Class<? extends T>> |
getEventTypes()
Returns a set of event types for this subscription. |
boolean |
isClosed()
Returns true if this subscription is closed. |
void |
removeChangeListener(ObservableSubscriptionChangeListener listener)
Removes subscription change listener. |
Method Detail |
---|
boolean isClosed()
true
if this subscription is closed.
java.util.Set<java.lang.Class<? extends T>> getEventTypes()
boolean containsEventType(java.lang.Class<?> eventType)
true
if this subscription contains the corresponding event type.
void addChangeListener(ObservableSubscriptionChangeListener listener)
ObservableSubscriptionChangeListener#keysAdded
on the given listener while holding the lock for this
subscription. This way the given listener synchronously receives existing subscription state and and
is synchronously notified on all changes in subscription afterwards.
listener
- the subscription change listener.
java.lang.NullPointerException
- if listener is null.void removeChangeListener(ObservableSubscriptionChangeListener listener)
ObservableSubscriptionChangeListener.subscriptionClosed()
on the given listener while
holding the lock for this subscription.
listener
- the subscription change listener.
java.lang.NullPointerException
- if listener is null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |