|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TimeSeriesEvent
Represents time-series snapshots of some
process that is evolving in time or actual events in some external system
that have an associated time stamp and can be uniquely identified.
For example, TimeAndSale
events represent the actual sales
that happen on a market exchange at specific time moments, while
Candle
events represent snapshots of aggregate information
about trading over a specific time period.
Time-series events can be used with DXFeedTimeSeriesSubscription
to receive a time-series history of past events. Time-series events
are conflated based on unique event identifiers for each symbol.
Event identifier is available via getEventId
method.
The history of past events retains only one (last) event for the given event identifier.
Classes that implement this interface may also implement
LastingEvent
interface, which makes it possible to
use DXFeed.getLastEvent
method to
retrieve the last event for the corresponding symbol.
Method Summary | |
---|---|
long |
getEventId()
Returns identifier of this event. |
long |
getTime()
Returns timestamp of the event. |
Method Detail |
---|
long getEventId()
event time
inside.
Ultimately, the scheme for event identifiers is specific for each even type. The actual classes for specific event types perform the corresponding encoding.
long getTime()
System.currentTimeMillis()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |