E - The type of the implementing event classpublic interface BaseEvent<E extends BaseEvent<E>> extends Marshallable
The event time is generally represented in nanoseconds. However, this can be adjusted if needed through the system property 'service.time.unit'.
EMPTYDISCARD| Modifier and Type | Method and Description |
|---|---|
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()
Updates event's time with the current time if it hasn't been set.
|
$equals, $fieldInfoMap, $fieldInfos, $hashCode, $toString, className, copyTo, deepCopy, fromFile, fromFile, fromString, fromString, fromString, getField, getLongField, mergeToMap, readMarshallable, reset, setField, setLongField, streamFromFile, streamFromFile, writeMarshallablebinaryLengthLength, writeValueunexpectedFieldlong 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.
eventTime - The timestamp to set for the event, in the configured time unit.UnsupportedOperationException - if the method is not overridden.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()
Copyright © 2024. All rights reserved.