public final class SelfEventContext extends java.lang.Object implements EventContext
param: timestamp time when the event was persisted as returned by InternalReplicatedEntity.currentTimeMillis() or
InternalReplicatedEntity.currentTimeMillis(),
which is typically in epoch milliseconds, i.e. milliseconds since midnight, January 1, 1970 UTC
param: sequenceNr the sequence number of the event
param: recoveryRunning true when the event is applied from replay when recovering the state at startup,
false if it was persisted now
| Constructor and Description |
|---|
SelfEventContext(long timestamp,
long sequenceNr,
boolean recoveryRunning) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
recoveryRunning()
true when the event is applied from replay when recovering the state at startup,
false if it was persisted now |
long |
sequenceNr()
The sequence number of the event.
|
long |
timestamp()
Time when the event was persisted as returned by
InternalReplicatedEntity.currentTimeMillis() or
InternalReplicatedEntity.currentTimeMillis(), which is typically in epoch milliseconds,
i.e. |
java.lang.String |
toString() |
public SelfEventContext(long timestamp,
long sequenceNr,
boolean recoveryRunning)
public boolean recoveryRunning()
EventContexttrue when the event is applied from replay when recovering the state at startup,
false if it was persisted nowrecoveryRunning in interface EventContextpublic long sequenceNr()
EventContextsequenceNr in interface EventContextpublic long timestamp()
EventContextInternalReplicatedEntity.currentTimeMillis() or
InternalReplicatedEntity.currentTimeMillis(), which is typically in epoch milliseconds,
i.e. milliseconds since midnight, January 1, 1970 UTC.timestamp in interface EventContextpublic java.lang.String toString()
toString in class java.lang.Object