Class Replicator.Get<A extends ReplicatedData>

  • All Implemented Interfaces:
    Replicator.Command<A>, Replicator.ReplicatorMessage, java.io.Serializable, scala.Equals, scala.Product, scala.Serializable
    Enclosing class:
    Replicator

    public static final class Replicator.Get<A extends ReplicatedData>
    extends java.lang.Object
    implements Replicator.Command<A>, Replicator.ReplicatorMessage, scala.Product, scala.Serializable
    Send this message to the local Replicator to retrieve a data value for the given key. The Replicator will reply with one of the Replicator.GetResponse messages.

    The optional request context is included in the reply messages. This is a convenient way to pass contextual information (e.g. original sender) without having to use ask or maintain local correlation data structures.

    See Also:
    Serialized Form
    • Constructor Detail

      • Get

        public Get​(Key<A> key,
                   Replicator.ReadConsistency consistency)
        Java API: Get value from local Replicator, i.e. ReadLocal consistency.
        Parameters:
        key - (undocumented)
        consistency - (undocumented)
      • Get

        public Get​(Key<A> key,
                   Replicator.ReadConsistency consistency,
                   java.util.Optional<java.lang.Object> request)
        Java API: Get value from local Replicator, i.e. ReadLocal consistency.
        Parameters:
        key - (undocumented)
        consistency - (undocumented)
        request - (undocumented)
    • Method Detail

      • request

        public scala.Option<java.lang.Object> request()
      • copy$default$3

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

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

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

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

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

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • hashCode

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

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

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