public interface SubscriptionIterator
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.
RecordSource
or use RecordBuffer
as a high-performance implementation of it. New code is also discouraged from using this
interface unless it is need for interoperability with legacy code. Various legacy APIs
will be gradually migrated to NG interfaces and classes.Modifier and Type | Field and Description |
---|---|
static SubscriptionIterator |
VOID |
Modifier and Type | Method and Description |
---|---|
int |
getCipher()
Returns cipher for the current record returned by last call to
nextRecord() . |
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.
|
static final SubscriptionIterator VOID
int getCipher()
nextRecord()
.
Returns 0 if not encoded or if no current record is being iterated.String getSymbol()
nextRecord()
.
Returns null if encoded or if no current record is being iterated.long getTime()
nextRecord()
.
Returns 0 if not historical or if no current record is being iterated.DataRecord nextRecord()
Copyright © 2002–2025 Devexperts LLC. All rights reserved.