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.
|
void |
readMarshallable(@NotNull WireIn wireIn)
Straight line ordered decoding.
|
boolean |
routedTo(String destServiceId) |
@NotNull String |
serviceId()
Used for cfg event routing.
|
E |
serviceId(String serviceId) |
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, reset, setField, setLongField, streamFromFile, streamFromFile, writeMarshallablebinaryLengthLength, writeValueunexpectedFieldpublic void readMarshallable(@NotNull
@NotNull WireIn wireIn)
throws net.openhft.chronicle.core.io.IORuntimeException
ReadMarshallablereadMarshallable in interface MarshallablereadMarshallable in interface ReadMarshallablereadMarshallable in class AbstractMarshallableCfgwireIn - to read from in an ordered manner.net.openhft.chronicle.core.io.IORuntimeException - the stream wasn't ordered or formatted as expected.@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 © 2022. All rights reserved.