E - type of the implementing eventpublic interface BaseEvent<E extends BaseEvent<E>> extends Marshallable
Marshallable so that the event can
be serialised or de-serialised. This interface provides methods to manage that associated time
Typically used for events generated outside the system that carry a timestamp.
The time unit defaults to nanoseconds but can be overridden globally with the
service.time.unit system property.
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()
Sets the event time to the current time via
eventTimeNow() if the
existing eventTime() is not positive. |
$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()
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 time to store, expressed in the service time unit
(see ServicesTimestampLongConverter).UnsupportedOperationException - if not overridden to store the valuedefault 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()
eventTimeNow() if the
existing eventTime() is not positive.Copyright © 2026 Chronicle Software Ltd. All rights reserved.