public interface Event<E extends Event<E>> extends Marshallable
EMPTYDISCARD| Modifier and Type | Method and Description |
|---|---|
@NotNull CharSequence |
eventId()
Returns a unique identifier attached to this event.
|
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 void |
updateEvent(String eventName)
Updates event with new event name, updating event time to now if required.
|
$equals, $fieldInfoMap, $fieldInfos, $hashCode, $toString, className, copyFrom, copyTo, deepCopy, fromFile, fromFile, fromFileAsMap, fromFileAsMap, fromHexString, fromString, fromString, fromString, getField, getLongField, mergeToMap, readMarshallable, reset, setField, setLongField, streamFromFile, streamFromFile, usesSelfDescribingMessage, writeMarshallablewriteValueunexpectedField@NotNull @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 void updateEvent(String eventName)
eventName - name of the eventCopyright © 2020. All rights reserved.