com.devexperts.qd.logger
Class BufferedSubscriptionIterator

java.lang.Object
  extended by com.devexperts.qd.logger.BufferedObject
      extended by com.devexperts.qd.logger.BufferedSubscriptionIterator
All Implemented Interfaces:
SubscriptionIterator

public class BufferedSubscriptionIterator
extends BufferedObject
implements SubscriptionIterator


Field Summary
 
Fields inherited from class com.devexperts.qd.logger.BufferedObject
sb
 
Constructor Summary
BufferedSubscriptionIterator(SubscriptionIterator delegate, DataScheme scheme)
           
 
Method Summary
 int getCipher()
          Returns cipher for the current record returned by last call to SubscriptionIterator.nextRecord().
 java.lang.String getSymbol()
          Returns symbol for the current record returned by last call to SubscriptionIterator.nextRecord().
 long getTime()
          Returns time for the current record returned by last call to SubscriptionIterator.nextRecord().
 DataRecord nextRecord()
          Returns next record.
 
Methods inherited from class com.devexperts.qd.logger.BufferedObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BufferedSubscriptionIterator

public BufferedSubscriptionIterator(SubscriptionIterator delegate,
                                    DataScheme scheme)
Method Detail

getCipher

public int getCipher()
Description copied from interface: SubscriptionIterator
Returns cipher for the current record returned by last call to SubscriptionIterator.nextRecord(). Returns 0 if not encoded or if no current record is being iterated.

Specified by:
getCipher in interface SubscriptionIterator

getSymbol

public java.lang.String getSymbol()
Description copied from interface: SubscriptionIterator
Returns symbol for the current record returned by last call to SubscriptionIterator.nextRecord(). Returns null if encoded or if no current record is being iterated.

Specified by:
getSymbol in interface SubscriptionIterator

getTime

public long getTime()
Description copied from interface: SubscriptionIterator
Returns time for the current record returned by last call to SubscriptionIterator.nextRecord(). Returns 0 if not historical or if no current record is being iterated.

Specified by:
getTime in interface SubscriptionIterator

nextRecord

public DataRecord nextRecord()
Description copied from interface: SubscriptionIterator
Returns next record. Returns null if no more records available.

Specified by:
nextRecord in interface SubscriptionIterator