public class TextConfiguration extends Object implements LastingEvent<String>, Serializable
TextConfiguration event has the following properties:
eventSymbol - symbol of this event;
time - time of this text configuration;
sequence - sequence of this text configuration;
version - version;
text - text payload.
The version field is used to track changes to the event data.
When the version field is enabled (by default), events with a lower version number than the last received
will be dropped. This is useful for conflating events, where only the latest version of an event is processed.
This is only true when transferring under a TICKER contract and the version field is enabled.
TextConfiguration.| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_SEQUENCE
Maximum allowed sequence value.
|
| Constructor and Description |
|---|
TextConfiguration()
Creates a new text configuration event with default values.
|
TextConfiguration(String eventSymbol)
Creates a new text configuration event with the specified event symbol.
|
TextConfiguration(String eventSymbol,
String text)
Creates a new text configuration event with the specified event symbol and text.
|
TextConfiguration(String eventSymbol,
String text,
int version)
Creates a new text configuration event with the specified event symbol, text, and version.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEventSymbol()
Returns the symbol for this event.
|
long |
getEventTime()
Returns time when event was created or zero when time is not available.
|
int |
getSequence()
Returns sequence number of this event to distinguish text configuration events that have the same
time. |
String |
getText()
Returns the text.
|
long |
getTime()
Returns time of this text configuration event.
|
int |
getVersion()
Returns the version of this event.
|
void |
setEventSymbol(String eventSymbol)
Changes the symbol for this event.
|
void |
setEventTime(long eventTime)
Changes event creation time.
|
void |
setSequence(int sequence)
Changes
sequence number of this text configuration event. |
void |
setText(String text)
Changes the text.
|
void |
setTime(long time)
Changes time of this text configuration event.
|
void |
setVersion(int version)
Changes the version of this event.
|
String |
toString()
Returns a string representation of this text configuration event.
|
public static final int MAX_SEQUENCE
setSequence(int),
Constant Field Valuespublic TextConfiguration()
public TextConfiguration(String eventSymbol)
eventSymbol - the event symbol.public TextConfiguration(String eventSymbol, String text)
eventSymbol - the event symbol.text - the text.public String getEventSymbol()
getEventSymbol in interface EventType<String>public void setEventSymbol(String eventSymbol)
setEventSymbol in interface EventType<String>eventSymbol - the event symbol.public 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.
getEventTime in interface EventType<String>public void setEventTime(long eventTime)
setEventTime in interface EventType<String>eventTime - the difference, measured in milliseconds,
between the event creation time and midnight, January 1, 1970 UTC.public long getTime()
public void setTime(long time)
time - time of this text configuration event.public int getSequence()
time. This sequence number does not have to be unique and
does not need to be sequential. Sequence can range from 0 to MAX_SEQUENCE.public void setSequence(int sequence)
sequence number of this text configuration event.sequence - the sequence.IllegalArgumentException - if the sequence is below zero or above MAX_SEQUENCE.getSequence()public int getVersion()
public void setVersion(int version)
version - the version of this event. A higher value indicates a more recent update.public String getText()
public void setText(String text)
text - the text.Copyright © 2002–2026 Devexperts LLC. All rights reserved.