E - the type of the implementing event classpublic interface Event<E extends Event<E>> extends BaseEvent<E>
BaseEvent for temporal handling and adds event identification.
NOTE: Only use this interface if the eventId is required as the eventTime is sufficient in most cases. The eventId allows events to be routed or categorised beyond their timestamp.
The self-referential generic <E extends Event<E>> lets implementations return their own type for chaining.
EMPTYDISCARD| Modifier and Type | Method and Description |
|---|---|
static void |
copyEventDetails(Event<?> from,
Event<?> to)
Copies the eventId and eventTime from one event to another.
|
default @NotNull CharSequence |
eventId()
Identifier used for routing or logging.
|
default E |
eventId(@NotNull CharSequence eventId)
Assigns or replaces the identifier.
|
default E |
updateEvent(String eventName)
Updates the event ID and sets the time if needed.
|
eventTime, eventTime, eventTimeNow, updateEvent$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 default @NotNull CharSequence eventId()
default E eventId(@NotNull @NotNull CharSequence eventId)
eventId - unique identifier to assign, should not be null; an empty
string can be used when no specific ID is requireddefault E updateEvent(String eventName)
eventName when the current ID is empty.
If BaseEvent.eventTime() is <= 0 the time is updated via BaseEvent.eventTimeNow().eventName - name to assign when eventId() is emptyCopyright © 2026 Chronicle Software Ltd. All rights reserved.