public interface Event<E extends Event<E>> extends Marshallable
EMPTYDISCARD| Modifier and Type | Method and Description |
|---|---|
static void |
copyEventDetails(Event<?> from,
Event<?> to)
Rather than getting/setting from one event to the other directly, please use this method as
this will make removing eventId easier
|
default @NotNull CharSequence |
eventId()
Deprecated.
|
default E |
eventId(@NotNull CharSequence eventId)
Assigns a unique identifier to this event.
|
long |
eventTime()
Returns the time at which the event which triggered this was generated (e.g.
|
default E |
eventTime(long eventTime)
Sets the time at which the event which triggered this was generated (e.g.
|
default E |
eventTimeNow()
Sets the time at which the event which triggered this was generated (e.g.
|
default E |
updateEvent(String eventName)
Updates event with new event name, updating event time to now if required.
|
$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 @Deprecated default @NotNull CharSequence eventId()
default E eventId(@NotNull @NotNull CharSequence eventId)
null.eventId - unique identifier to assign to this event.long eventTime()
By default, the time is represented in nanoseconds. System property 'service.time.unit' can be changed in order to represent time in different units.
default E eventTime(long eventTime)
By default, the time is represented in nanoseconds. System property 'service.time.unit' can be changed in order to represent time in different units.
default E eventTimeNow()
By default, the time is represented in nanoseconds. System property 'service.time.unit' can be changed in order to represent time in different units.
default E updateEvent(String eventName)
eventName - name of the eventCopyright © 2023. All rights reserved.