T
- type of the event symbol for this event type.public interface EventType<T> extends Serializable
Event types are POJOs (plain old java objects) that follow bean naming convention with getters and setters for their properties. All event types are serializable, because they are transferred over network from publishers to data feed consumers. However, they are using custom serialization format for this purpose.
DXFeed
Modifier and Type | Method and Description |
---|---|
T |
getEventSymbol()
Returns event symbol that identifies this event type in
subscription . |
default long |
getEventTime()
Returns time when event was created or zero when time is not available.
|
void |
setEventSymbol(T eventSymbol)
Changes event symbol that identifies this event type in
subscription . |
default void |
setEventTime(long eventTime)
Changes event creation time.
|
T getEventSymbol()
subscription
.void setEventSymbol(T eventSymbol)
subscription
.eventSymbol
- event symbol.default long getEventTime()
This event time is available only when the corresponding DXEndpoint
is created
with DXENDPOINT_EVENT_TIME_PROPERTY
and
the data source has embedded event times. This is typically true only for data events
that are read from historical tape files and from OnDemandService
.
Events that are coming from a network connections do not have an embedded event time information and
this method will return zero for them, meaning that event was received just now.
default void setEventTime(long eventTime)
eventTime
- the difference, measured in milliseconds,
between the event creation time and midnight, January 1, 1970 UTC.Copyright © 2002–2023 Devexperts LLC. All rights reserved.