|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QDTicker
The 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.
Method Summary | |
---|---|
boolean |
examineData(DataVisitor visitor)
Examines all stored data via specified data visitor. |
void |
getData(RecordCursor.Owner owner,
DataRecord record,
int cipher,
java.lang.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. |
void |
getData(RecordCursor cursor,
DataRecord record,
int cipher,
java.lang.String symbol)
Deprecated. Use getData(RecordCursor.Owner, DataRecord, int, String) |
int |
getInt(DataIntField field,
int cipher,
java.lang.String symbol)
Returns current value of specified Int-field. |
java.lang.Object |
getObj(DataObjField field,
int cipher,
java.lang.String symbol)
Returns current value of specified Obj-field. |
boolean |
isAvailable(DataRecord record,
int cipher,
java.lang.String symbol)
Determines if value of specified record is available. |
boolean |
isStoreEverything()
Returns status of "store everything" mode. |
void |
remove(RecordSource source)
Removes the corresponding records from the underlying ticker storage. |
void |
setStoreEverything(boolean store_everything)
Sets "store everything" mode (disabled by default). |
void |
setStoreEverythingFilter(SubscriptionFilter filter)
Sets filter that is used for "store everything" mode. |
Methods inherited from interface com.devexperts.qd.QDCollector |
---|
createAgent, createAgent, createDistributor, createDistributor, getContract, getScheme, getSymbol, setErrorHandler |
Methods inherited from interface com.devexperts.qd.SubscriptionContainer |
---|
examineSubscription, getSubscriptionSize, isSubscribed |
Methods inherited from interface com.devexperts.qd.stats.QDStatsContainer |
---|
getStats |
Method Detail |
---|
boolean isStoreEverything()
setStoreEverything(boolean)
void setStoreEverything(boolean store_everything)
processData
stores everything into underlying storage regardless of subscription (by default only records that are
subscribed on are being stored). When subscription is removed records are not removed from storage
(by default they are). Only records that match specified filter
are subject to this mode (all records by default).
void setStoreEverythingFilter(SubscriptionFilter filter)
null
(default)
to turn off filtering and store all records when "store everything" mode is on.
setStoreEverything(boolean)
boolean isAvailable(DataRecord record, int cipher, java.lang.String symbol)
int getInt(DataIntField field, int cipher, java.lang.String symbol)
java.lang.Object getObj(DataObjField field, int cipher, java.lang.String symbol)
void getData(RecordCursor cursor, DataRecord record, int cipher, java.lang.String symbol)
getData(RecordCursor.Owner, DataRecord, int, String)
RecordCursor
.
void getData(RecordCursor.Owner owner, DataRecord record, int cipher, java.lang.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 examineData(DataVisitor visitor)
true
if some data was not examined or
false
if everything was examined.
void remove(RecordSource source)
isAvailable(com.devexperts.qd.DataRecord, int, java.lang.String)
will become false
for all removed records.
This method is designed to facilitate cleanup of stale data. Intended pattern
for this method is to call examineData(com.devexperts.qd.DataVisitor)
, store stale records to be removed
into RecordBuffer
and use remove(com.devexperts.qd.ng.RecordSource)
for them.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |