public static interface ReplicatedEntity.EventTriggerContext
| Modifier and Type | Method and Description |
|---|---|
ReplicatedEntity.ActorContext |
actorContext() |
boolean |
isSelfOriginDc()
Convenience method to check if the
originDc of the current event is the same as the datacenter
the ReplicatedEntity is currently running in. |
java.lang.String |
originDc()
Datacenter name in which the event was originally persisted.
|
ReplicatedEntity.ActorContext actorContext()
boolean isSelfOriginDc()
originDc of the current event is the same as the datacenter
the ReplicatedEntity is currently running in.java.lang.String originDc()
If it is equal to Cluster.selfDataCenter it is a local event,
and if not, it's a replicated event from the that datacenter.