public class AbstractEventCfg<E extends AbstractEventCfg<E>> extends AbstractMarshallableCfg implements Event<E>
EMPTYDISCARD| Constructor and Description |
|---|
AbstractEventCfg() |
| Modifier and Type | Method and Description |
|---|---|
@NotNull String |
eventId()
Returns a unique identifier attached to this event.
|
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.
|
E |
eventTime(long eventTime)
Sets the time at which the event which triggered this was generated (e.g.
|
E |
eventTimeNow()
Sets the time at which the event which triggered this was generated (e.g.
|
boolean |
routedTo(String destServiceId) |
@NotNull String |
serviceId()
Used for cfg event routing.
|
E |
serviceId(String serviceId) |
readMarshallable, unexpectedField, writeMarshallableusesSelfDescribingMessageequals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopyEventDetails, 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 public @NotNull String eventId()
EventeventId in interface Event<E extends AbstractEventCfg<E>>public E eventId(@NotNull @NotNull CharSequence eventId)
Eventnull.eventId in interface Event<E extends AbstractEventCfg<E>>eventId - unique identifier to assign to this event.public long eventTime()
EventBy default, the time is represented in nanoseconds. System property 'service.time.unit' can be changed in order to represent time in different units.
eventTime in interface Event<E extends AbstractEventCfg<E>>public E eventTime(long eventTime)
EventBy default, the time is represented in nanoseconds. System property 'service.time.unit' can be changed in order to represent time in different units.
eventTime in interface Event<E extends AbstractEventCfg<E>>public E eventTimeNow()
EventBy default, the time is represented in nanoseconds. System property 'service.time.unit' can be changed in order to represent time in different units.
eventTimeNow in interface Event<E extends AbstractEventCfg<E>>@NotNull public @NotNull String serviceId()
public boolean routedTo(String destServiceId)
Copyright © 2023. All rights reserved.