com.devexperts.qd
Interface SubscriptionVisitor

All Known Implementing Classes:
AbstractByteArrayComposer, BlobByteArrayComposer, BufferedSubscriptionVisitor, ByteArrayComposer, RecordBuffer, SubscriptionBuffer, TextByteArrayComposer

public interface SubscriptionVisitor

The SubscriptionVisitor provides serial access to subscription. It follows the same pattern as DataVisitor 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
 boolean hasCapacity()
          Returns whether visitor has capacity to efficiently visit next record.
 void visitRecord(DataRecord record, int cipher, java.lang.String symbol, long time)
          Visits next record.
 

Method Detail

hasCapacity

boolean hasCapacity()
Returns whether visitor has capacity to efficiently visit next record. This method may be used to advise subscription provider that it is desirable to stop current string of visiting and to keep remaining subscription. However, at present, subscription provider is not obliged to adhere to this method contract.

NOTE: subscription visitor must process all subscription that is passed to it via visitXXX calls no matter whether it has capacity to do it efficiently.


visitRecord

void visitRecord(DataRecord record,
                 int cipher,
                 java.lang.String symbol,
                 long time)
Visits next record.