public interface EventContext
| 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. |
boolean recoveryRunning()
true when the event is applied from replay when recovering the state at startup,
false if it was persisted nowlong sequenceNr()
long timestamp()
InternalReplicatedEntity.currentTimeMillis() or
InternalReplicatedEntity.currentTimeMillis(), which is typically in epoch milliseconds,
i.e. milliseconds since midnight, January 1, 1970 UTC.