E
- the type of events.public interface ObservableSubscription<E>
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ObservableSubscriptionChangeListener listener)
Adds subscription change listener.
|
boolean |
containsEventType(Class<?> eventType)
Returns
true if this subscription contains the corresponding event type. |
Set<Class<? extends E>> |
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.
|
boolean isClosed()
true
if this subscription is closed.
The observable subscription that is returned as a result of
DXPublisher.getSubscription
is closed when the corresponding DXEndpoint
is closed.Set<Class<? extends E>> getEventTypes()
DXPublisher.getSubscription
has a singleton set of event types.boolean containsEventType(Class<?> eventType)
true
if this subscription contains the corresponding event type.getEventTypes()
void addChangeListener(ObservableSubscriptionChangeListener listener)
ObservableSubscriptionChangeListener.symbolsAdded(java.util.Set<?>)
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.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.NullPointerException
- if listener is null.Copyright © 2002–2023 Devexperts LLC. All rights reserved.