com.devexperts.qd.logger
Class LoggedSubscriptionProvider

java.lang.Object
  extended by com.devexperts.qd.logger.LoggedObject
      extended by com.devexperts.qd.logger.LoggedSubscriptionProvider
All Implemented Interfaces:
SubscriptionProvider

public class LoggedSubscriptionProvider
extends LoggedObject
implements SubscriptionProvider


Field Summary
 
Fields inherited from class com.devexperts.qd.logger.LoggedObject
log, name
 
Constructor Summary
LoggedSubscriptionProvider(QDLog log, java.lang.String name, SubscriptionProvider delegate, DataScheme scheme)
           
 
Method Summary
 boolean retrieveSubscription(SubscriptionVisitor visitor)
          Retrieves accumulated subscription into specified subscription visitor.
 void setSubscriptionListener(SubscriptionListener listener)
          Sets new subscription listener to receive notifications about subscription.
 
Methods inherited from class com.devexperts.qd.logger.LoggedObject
child, debug, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoggedSubscriptionProvider

public LoggedSubscriptionProvider(QDLog log,
                                  java.lang.String name,
                                  SubscriptionProvider delegate,
                                  DataScheme scheme)
Method Detail

retrieveSubscription

public boolean retrieveSubscription(SubscriptionVisitor visitor)
Description copied from interface: SubscriptionProvider
Retrieves accumulated subscription into specified subscription visitor. Returns true if some subscription still remains in the provider or false if all accumulated subscription were retrieved.

Specified by:
retrieveSubscription in interface SubscriptionProvider

setSubscriptionListener

public void setSubscriptionListener(SubscriptionListener listener)
Description copied from interface: SubscriptionProvider
Sets new subscription listener to receive notifications about subscription. Only one listener at a time is supported; the former listener is discarded. Use null to set empty subscription listener (no notifications).

NOTE: if there is accumulated subscription available, then specified listener will be notified by this method.

Specified by:
setSubscriptionListener in interface SubscriptionProvider