Class Replicator.Changed<A extends ReplicatedData>

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

public static final class Replicator.Changed<A extends ReplicatedData> extends Object implements Replicator.SubscribeResponse<A>, Replicator.ReplicatorMessage, scala.Product, Serializable
The data value is retrieved with get(org.apache.pekko.cluster.ddata.Key<T>) using the typed key.

See Also:
  • Constructor Details

    • Changed

      public Changed(Key<A> key, A data)
  • Method Details

    • key

      public Key<A> key()
      Specified by:
      key in interface Replicator.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 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.Changed<A> copy(Key<A> key, A data)
    • copy$default$1

      public <A extends ReplicatedData> Key<A> copy$default$1()
    • 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