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()
Returns the unique identifier for this event.
|
E |
eventId(@NotNull CharSequence eventId)
Sets a new identifier for this event.
|
long |
eventTime()
Returns the timestamp associated with this event.
|
E |
eventTime(long eventTime)
Sets the timestamp for this event.
|
E |
eventTimeNow()
Updates the event time with the current system time.
|
int |
hashCode() |
boolean |
routedTo(String destServiceId)
Checks if this event is intended for the given destination service.
|
@NotNull String |
serviceId()
Retrieves the service identifier associated with this event.
|
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()
eventId in interface Event<E extends AbstractEventCfg<E>>public E eventId(@NotNull @NotNull CharSequence eventId)
eventId in interface Event<E extends AbstractEventCfg<E>>eventId - the unique identifier to assign; must not be nullpublic long eventTime()
eventTime in interface BaseEvent<E extends AbstractEventCfg<E>>ServicesTimestampLongConverterpublic E eventTime(long eventTime)
eventTime in interface BaseEvent<E extends AbstractEventCfg<E>>eventTime - the new timestamp, typically in nanosecondspublic E eventTimeNow()
eventTimeNow in interface BaseEvent<E extends AbstractEventCfg<E>>@NotNull public @NotNull String serviceId()
public E serviceId(String serviceId)
serviceId - the service ID to set; may be empty if not applicablepublic boolean routedTo(String destServiceId)
destServiceId - The destination service ID to check againstCopyright © 2026 Chronicle Software Ltd. All rights reserved.