com.dxfeed.api.osub
Interface ObservableSubscriptionChangeListener


public interface ObservableSubscriptionChangeListener

This listener interface for receiving notifications on the change of subscription. All methods on this interface are invoked while holding a lock on ObservableSubscription instance, thus all changes for a given subscription are synchronized with respect to each other.

Decorated symbols

The sets of symbols that are passed to symbolsAdded(Set) and symbolsRemoved(Set) are decorated depending on the actual implementation class of DXFeedSubscription. DXFeedTimeSeriesSubscription decorates original subscription symbols by wrapping them into instances of TimeSeriesSubscriptionSymbol class.


Method Summary
 void subscriptionClosed()
          Invoked after subscription is closed or when this listener is removed from the subscription.
 void symbolsAdded(java.util.Set<?> symbols)
          Invoked after a collection of symbols is added to a subscription.
 void symbolsRemoved(java.util.Set<?> symbols)
          Invoked after a collection of symbols is removed from a subscription.
 

Method Detail

symbolsAdded

void symbolsAdded(java.util.Set<?> symbols)
Invoked after a collection of symbols is added to a subscription. Subscription's set of symbols already includes added symbols when this method is invoked. The set of symbols is decorated.


symbolsRemoved

void symbolsRemoved(java.util.Set<?> symbols)
Invoked after a collection of symbols is removed from a subscription. Subscription's set of symbols already excludes removed symbols when this method is invoked. The set of symbols is decorated.


subscriptionClosed

void subscriptionClosed()
Invoked after subscription is closed or when this listener is removed from the subscription. DXPublisher subscription is considered to be closed when the corresponding DXEndpoint is closed.