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.
|Modifier and Type||Method and Description|
Returns event symbol that identifies this event type in
Returns time when event was created or zero when time is not available.
Changes event symbol that identifies this event type in
Changes event creation time.
void setEventSymbol(T eventSymbol)
eventSymbol- event symbol.
default long getEventTime()
This event time is available only when the corresponding
DXEndpoint is created
the data source has embedded event times. This is typically true only for data events
that are read from historical tape files and from
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-2021 Devexperts LLC. All Rights Reserved.