com.devexperts.qd
Interface SubscriptionIterator

All Known Implementing Classes:
BufferedSubscriptionIterator, RecordBuffer, SubscriptionBuffer

public interface SubscriptionIterator

The SubscriptionIterator provides serial access to subscription. It follows the same pattern as DataIterator except it does not go through data fields.

NOTE: This interface is formally unrelated to its data analogue to enforce strict type safety; also their state diagrams are not compatible.


Method Summary
 int getCipher()
          Returns cipher for the current record returned by last call to nextRecord().
 java.lang.String getSymbol()
          Returns symbol for the current record returned by last call to nextRecord().
 long getTime()
          Returns time for the current record returned by last call to nextRecord().
 DataRecord nextRecord()
          Returns next record.
 

Method Detail

getCipher

int getCipher()
Returns cipher for the current record returned by last call to nextRecord(). Returns 0 if not encoded or if no current record is being iterated.


getSymbol

java.lang.String getSymbol()
Returns symbol for the current record returned by last call to nextRecord(). Returns null if encoded or if no current record is being iterated.


getTime

long getTime()
Returns time for the current record returned by last call to nextRecord(). Returns 0 if not historical or if no current record is being iterated.


nextRecord

DataRecord nextRecord()
Returns next record. Returns null if no more records available.