Class Replicator.GetSuccess<A extends ReplicatedData>

java.lang.Object
org.apache.pekko.cluster.ddata.Replicator.GetResponse<A>
org.apache.pekko.cluster.ddata.Replicator.GetSuccess<A>
All Implemented Interfaces:
Serializable, NoSerializationVerificationNeeded, Replicator.ReplicatorMessage, scala.Equals, scala.Product
Enclosing class:
Replicator

public static final class Replicator.GetSuccess<A extends ReplicatedData> extends Replicator.GetResponse<A> implements Replicator.ReplicatorMessage, scala.Product, Serializable
Reply from Get. The data value is retrieved with get(org.apache.pekko.cluster.ddata.Key<T>) using the typed key.
See Also:
  • Constructor Details

    • GetSuccess

      public GetSuccess(Key<A> key, scala.Option<Object> request, A data)
  • Method Details

    • key

      public Key<A> key()
      Specified by:
      key in class Replicator.GetResponse<A extends ReplicatedData>
    • request

      public scala.Option<Object> request()
      Specified by:
      request in class Replicator.GetResponse<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 the key parameter.
    • dataValue

      public A dataValue()
      The data value. Use get(org.apache.pekko.cluster.ddata.Key<T>) to get the fully typed value.
    • copy

      public <A extends ReplicatedData> Replicator.GetSuccess<A> copy(Key<A> key, scala.Option<Object> request, A data)
    • copy$default$1

      public <A extends ReplicatedData> Key<A> copy$default$1()
    • copy$default$2

      public <A extends ReplicatedData> scala.Option<Object> copy$default$2()
    • productPrefix

      public String productPrefix()
      Specified by:
      productPrefix in interface scala.Product
    • productArity

      public int productArity()
      Specified by:
      productArity in interface scala.Product
    • productElement

      public Object productElement(int x$1)
      Specified by:
      productElement in interface scala.Product
    • productIterator

      public scala.collection.Iterator<Object> productIterator()
      Specified by:
      productIterator in interface scala.Product
    • canEqual

      public boolean canEqual(Object x$1)
      Specified by:
      canEqual in interface scala.Equals
    • productElementName

      public String productElementName(int x$1)
      Specified by:
      productElementName in interface scala.Product
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object x$1)
      Specified by:
      equals in interface scala.Equals
      Overrides:
      equals in class Object