Package akka.cluster.ddata
Class Replicator.Changed<A extends ReplicatedData>
- java.lang.Object
-
- akka.cluster.ddata.Replicator.Changed<A>
-
- All Implemented Interfaces:
NoSerializationVerificationNeeded
,Replicator.ReplicatorMessage
,Replicator.SubscribeResponse<A>
,java.io.Serializable
,scala.Equals
,scala.Product
- Enclosing class:
- Replicator
public static final class Replicator.Changed<A extends ReplicatedData> extends java.lang.Object implements Replicator.SubscribeResponse<A>, Replicator.ReplicatorMessage, scala.Product, java.io.Serializable
The data value is retrieved withget(akka.cluster.ddata.Key<T>)
using the typed key.- See Also:
Replicator.Subscribe
, Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canEqual(java.lang.Object x$1)
<A extends ReplicatedData>
Replicator.Changed<A>copy(Key<A> key, A data)
<A extends ReplicatedData>
Key<A>copy$default$1()
A
dataValue()
The data value.boolean
equals(java.lang.Object x$1)
<T extends ReplicatedData>
Tget(Key<T> key)
The data value, with correct type.int
hashCode()
Key<A>
key()
int
productArity()
java.lang.Object
productElement(int x$1)
java.lang.String
productElementName(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
java.lang.String
toString()
-
-
-
Method Detail
-
key
public Key<A> key()
- Specified by:
key
in interfaceReplicator.SubscribeResponse<A extends ReplicatedData>
-
get
public <T extends ReplicatedData> T get(Key<T> key)
The data value, with correct type. Scala pattern matching cannot infer the type from thekey
parameter.
-
dataValue
public A dataValue()
The data value. Useget(akka.cluster.ddata.Key<T>)
to get the fully typed value.
-
copy
public <A extends ReplicatedData> Replicator.Changed<A> copy(Key<A> key, A data)
-
copy$default$1
public <A extends ReplicatedData> Key<A> copy$default$1()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-