com.devexperts.qd
Interface SubscriptionListener

All Known Implementing Classes:
DistributorAdapter, LoggedSubscriptionListener

public interface SubscriptionListener

The SubscriptionListener is used to receive notifications about subscription availability in the corresponding subscription providers.

Generally, the notification is issued only if provider transforms from 'empty' state into 'available' state at some moment after transition. In other cases notification is not issued, though certain exclusions exist. The notification is issued in a state that allows listener to perform potentially costly operations like event scheduling, synchronization, or farther notification.


Field Summary
static SubscriptionListener VOID
          This listener immediately retrieves and discards subscription from provider.
 
Method Summary
 void subscriptionAvailable(SubscriptionProvider provider)
          Notifies this listener that subscription is available in the specified subscription provider.
 

Field Detail

VOID

static final SubscriptionListener VOID
This listener immediately retrieves and discards subscription from provider.

Method Detail

subscriptionAvailable

void subscriptionAvailable(SubscriptionProvider provider)
Notifies this listener that subscription is available in the specified subscription provider.