com.dxfeed.api
Interface DXFeedSubscriptionChangeListener


public interface DXFeedSubscriptionChangeListener

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


Method Summary
 void subscriptionCleared(DXFeedSubscription<?> subscription)
          Invoked when all symbols are removed from subscription.
 void subscriptionClosed(DXFeedSubscription<?> subscription)
          Invoked when subscription is closed.
 void symbolsAdded(DXFeedSubscription<?> subscription, java.util.Collection<java.lang.String> symbols)
          Invoked when a collection of symbols is added to a subscription.
 void symbolsRemoved(DXFeedSubscription<?> subscription, java.util.Collection<java.lang.String> symbols)
          Invoked when a collection of symbols is removed from a subscription.
 

Method Detail

symbolsAdded

void symbolsAdded(DXFeedSubscription<?> subscription,
                  java.util.Collection<java.lang.String> symbols)
Invoked when a collection of symbols is added to a subscription.

Parameters:
subscription - the subscription.
symbols - the collection of symbols.

symbolsRemoved

void symbolsRemoved(DXFeedSubscription<?> subscription,
                    java.util.Collection<java.lang.String> symbols)
Invoked when a collection of symbols is removed from a subscription.

Parameters:
subscription - the subscruption.
symbols - the collection of symbols.

subscriptionCleared

void subscriptionCleared(DXFeedSubscription<?> subscription)
Invoked when all symbols are removed from subscription.

Parameters:
subscription - the subscruption.

subscriptionClosed

void subscriptionClosed(DXFeedSubscription<?> subscription)
Invoked when subscription is closed.

Parameters:
subscription - the subscruption.