Package akka.cluster.ddata.typed.javadsl
Class Replicator.GetSuccess<A extends ReplicatedData>
- java.lang.Object
-
- akka.cluster.ddata.typed.javadsl.Replicator.GetResponse<A>
-
- akka.cluster.ddata.typed.javadsl.Replicator.GetSuccess<A>
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Equals
,scala.Product
- Enclosing class:
- Replicator
public static final class Replicator.GetSuccess<A extends ReplicatedData> extends Replicator.GetResponse<A> implements scala.Product, java.io.Serializable
Reply fromGet
. The data value is retrieved withget(akka.cluster.ddata.Key<T>)
using the typed key.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GetSuccess(Key<A> key, A data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canEqual(java.lang.Object x$1)
<A extends ReplicatedData>
Replicator.GetSuccess<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 classReplicator.GetResponse<A extends ReplicatedData>
-
get
public <T extends ReplicatedData> T get(Key<T> key)
The data value, with correct type.
-
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.GetSuccess<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
-
-