E - The type parameter extending AbstractEventCfgpublic class AbstractEventCfg<E extends AbstractEventCfg<E>> extends AbstractMarshallableCfg implements Event<E>
EMPTYDISCARD| Constructor and Description |
|---|
AbstractEventCfg() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
@NotNull String |
eventId()
Retrieves the unique identifier associated with this event.
|
E |
eventId(@NotNull CharSequence eventId)
Assigns an identifier to this event.
|
long |
eventTime()
Returns the time at which the event which triggered this was generated (e.g.
|
E |
eventTime(long eventTime)
Sets the time at which the event which triggered this was generated (e.g.
|
E |
eventTimeNow()
Sets the time at which the event which triggered this was generated (e.g.
|
int |
hashCode() |
boolean |
routedTo(String destServiceId)
This method checks if the event is routed to a specific destination service.
|
@NotNull String |
serviceId()
This method retrieves the service ID associated with the event, used for event routing.
|
E |
serviceId(String serviceId)
This method sets the provided service ID to the instance variable.
|
String |
toString() |
readMarshallable, unexpectedField, writeMarshallableusesSelfDescribingMessageclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopyEventDetails, updateEventupdateEvent$equals, $fieldInfoMap, $fieldInfos, $hashCode, $toString, className, copyTo, deepCopy, fromFile, fromFile, fromString, fromString, fromString, getField, getLongField, mergeToMap, readMarshallable, reset, setField, setLongField, streamFromFile, streamFromFile, writeMarshallablebinaryLengthLength, writeValueunexpectedField@NotNull public @NotNull String eventId()
EventeventId in interface Event<E extends AbstractEventCfg<E>>public E eventId(@NotNull @NotNull CharSequence eventId)
EventeventId in interface Event<E extends AbstractEventCfg<E>>eventId - The unique identifier to assign to this event.public long eventTime()
BaseEventBy default, the time is represented in nanoseconds. System property 'service.time.unit' can be changed in order to represent time in different units.
eventTime in interface BaseEvent<E extends AbstractEventCfg<E>>public E eventTime(long eventTime)
BaseEventBy default, the time is represented in nanoseconds. System property 'service.time.unit' can be changed in order to represent time in different units.
eventTime in interface BaseEvent<E extends AbstractEventCfg<E>>eventTime - The timestamp to set for the event, in the configured time unit.public E eventTimeNow()
BaseEventBy default, the time is represented in nanoseconds. System property 'service.time.unit' can be changed in order to represent time in different units.
eventTimeNow in interface BaseEvent<E extends AbstractEventCfg<E>>@NotNull public @NotNull String serviceId()
public E serviceId(String serviceId)
serviceId - The new service ID to be setpublic boolean routedTo(String destServiceId)
destServiceId - The destination service ID to check againstCopyright © 2024. All rights reserved.