public interface QDTicker extends QDCollector
QDTicker
represents a ticker-view of the data.
In the ticker-view, only last data values are important and data events are
generated only to bring data snapshot up-to-date. Such contract also allows
QDTicker
to provide random access to current data values.QDCollector.Builder<T extends QDCollector>, QDCollector.Factory
Modifier and Type | Method and Description |
---|---|
void |
getData(RecordCursor.Owner owner,
DataRecord record,
int cipher,
String symbol)
Gets all data for the specified record, cipher, and symbol in a single call
and sets
RecordCursor via caller-provided
RecordCursor.Owner to the
corresponding memory storage in read-only mode. |
boolean |
getDataIfAvailable(RecordCursor.Owner owner,
DataRecord record,
int cipher,
String symbol)
Gets all data for the specified record, cipher, and symbol in a single call
and sets
RecordCursor via caller-provided
RecordCursor.Owner to the
corresponding memory storage in read-only mode if the corresponding data
is available in the storage. |
boolean |
getDataIfSubscribed(RecordCursor.Owner owner,
DataRecord record,
int cipher,
String symbol) |
int |
getInt(DataIntField field,
int cipher,
String symbol)
Returns current value of specified Int-field.
|
Object |
getObj(DataObjField field,
int cipher,
String symbol)
Returns current value of specified Obj-field.
|
boolean |
isAvailable(DataRecord record,
int cipher,
String symbol)
Determines if value of specified record is available.
|
agentBuilder, buildAgent, buildDistributor, close, createAgent, createAgent, createDistributor, createDistributor, distributorBuilder, examineData, examineData, examineDataBySubscription, executeLockBoundTask, getContract, getScheme, getStriper, getSymbol, hasEventTimeSequence, isStoreEverything, remove, setErrorHandler, setStoreEverything, setStoreEverythingFilter
examineSubscription, examineSubscription, getSubscriptionSize, isSubscribed
getStats
boolean isAvailable(DataRecord record, int cipher, String symbol)
int getInt(DataIntField field, int cipher, String symbol)
Object getObj(DataObjField field, int cipher, String symbol)
void getData(RecordCursor.Owner owner, DataRecord record, int cipher, String symbol)
RecordCursor
via caller-provided
RecordCursor.Owner
to the
corresponding memory storage in read-only mode. This way, any fields
can be retried from ticker without requiring any actual data copy or memory allocation.boolean getDataIfAvailable(RecordCursor.Owner owner, DataRecord record, int cipher, String symbol)
RecordCursor
via caller-provided
RecordCursor.Owner
to the
corresponding memory storage in read-only mode if the corresponding data
is available in the storage. If the data was available then this method returns true
.
If the data was not available then this method returns false
and the cursor is not changed.true
if the data was available, false
otherwise.boolean getDataIfSubscribed(RecordCursor.Owner owner, DataRecord record, int cipher, String symbol)
Copyright © 2002–2025 Devexperts LLC. All rights reserved.