public final class EventTaggingContextImpl extends java.lang.Object implements ReplicatedEntity.EventTaggingContext, ReplicatedEntity.EventTaggingContext, scala.Product, scala.Serializable
| Constructor and Description |
|---|
EventTaggingContextImpl(java.lang.String originDc,
boolean isSelfOriginDc) |
| Modifier and Type | Method and Description |
|---|---|
static EventTaggingContextImpl |
apply(java.lang.String originDc,
boolean isSelfOriginDc) |
boolean |
canEqual(java.lang.Object x$1) |
EventTaggingContextImpl |
copy(java.lang.String originDc,
boolean isSelfOriginDc) |
java.lang.String |
copy$default$1() |
boolean |
copy$default$2() |
boolean |
equals(java.lang.Object x$1) |
int |
hashCode() |
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 this event was originally persisted.
|
int |
productArity() |
java.lang.Object |
productElement(int x$1) |
scala.collection.Iterator<java.lang.Object> |
productIterator() |
java.lang.String |
productPrefix() |
java.lang.String |
toString() |
static scala.Option<scala.Tuple2<java.lang.String,java.lang.Object>> |
unapply(EventTaggingContextImpl x$0) |
public EventTaggingContextImpl(java.lang.String originDc,
boolean isSelfOriginDc)
public static EventTaggingContextImpl apply(java.lang.String originDc, boolean isSelfOriginDc)
public static scala.Option<scala.Tuple2<java.lang.String,java.lang.Object>> unapply(EventTaggingContextImpl x$0)
public java.lang.String originDc()
ReplicatedEntity.EventTaggingContext
If it is equal to Cluster.selfDataCenter it is a local event,
and if not, it's a replicated event from the that datacenter.
originDc in interface ReplicatedEntity.EventTaggingContextpublic boolean isSelfOriginDc()
ReplicatedEntity.EventTaggingContextoriginDc of the current event is the same as the datacenter
the ReplicatedEntity is currently running in.isSelfOriginDc in interface ReplicatedEntity.EventTaggingContextpublic EventTaggingContextImpl copy(java.lang.String originDc, boolean isSelfOriginDc)
public java.lang.String copy$default$1()
public boolean copy$default$2()
public java.lang.String productPrefix()
productPrefix in interface scala.Productpublic int productArity()
productArity in interface scala.Productpublic java.lang.Object productElement(int x$1)
productElement in interface scala.Productpublic scala.collection.Iterator<java.lang.Object> productIterator()
productIterator in interface scala.Productpublic boolean canEqual(java.lang.Object x$1)
canEqual in interface scala.Equalspublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object x$1)
equals in interface scala.Equalsequals in class java.lang.Object