public class Configuration extends Object implements LastingEvent<String>, Serializable
Configuration event has the following properties:
eventSymbol - symbol of this event;
version - version;
attachment - attachment.
Configuration.| Constructor and Description |
|---|
Configuration()
Creates new configuration event with default values.
|
Configuration(String eventSymbol)
Creates new configuration event with the specified event symbol.
|
Configuration(String eventSymbol,
Object attachment)
Creates new configuration event with the specified event symbol and attachment.
|
Configuration(String eventSymbol,
Object attachment,
int version)
Creates new configuration event with the specified event symbol, attachment and version.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttachment()
Returns attachment.
|
Object |
getAttachment(ClassLoader cl)
Returns attachment.
|
String |
getEventSymbol()
Returns symbol for this event.
|
long |
getEventTime()
Returns time when event was created or zero when time is not available.
|
int |
getVersion()
Returns version.
|
void |
setAttachment(Object attachment)
Changes attachment.
|
void |
setEventSymbol(String eventSymbol)
Changes symbol for this event.
|
void |
setEventTime(long eventTime)
Changes event creation time.
|
void |
setVersion(int version)
Changes version.
|
String |
toString()
Returns string representation of this configuration event.
|
public Configuration()
public Configuration(String eventSymbol)
eventSymbol - event symbol.public Configuration(String eventSymbol, Object attachment)
eventSymbol - event symbol.attachment - attachment.public String getEventSymbol()
getEventSymbol in interface EventType<String>public void setEventSymbol(String eventSymbol)
setEventSymbol in interface EventType<String>eventSymbol - 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 int getVersion()
public void setVersion(int version)
version - version.public Object getAttachment()
RuntimeException - if object cannot be deserialized from its serial formpublic Object getAttachment(ClassLoader cl)
cl - the ClassLoader that will be used to load classes; null for defaultRuntimeException - if object cannot be deserialized from its serial formpublic void setAttachment(Object attachment)
attachment - attachment.Copyright © 2002–2023 Devexperts LLC. All rights reserved.