Class Replicator.Update<A extends ReplicatedData>

    • Constructor Detail

      • Update

        public Update​(Key<A> key,
                      Replicator.WriteConsistency writeConsistency,
                      scala.Option<java.lang.Object> request,
                      scala.Function1<scala.Option<A>,​A> modify)
      • Update

        public Update​(Key<A> key,
                      A initial,
                      Replicator.WriteConsistency writeConsistency,
                      java.util.Optional<java.lang.Object> request,
                      java.util.function.Function<A,​A> modify)
        Java API: Modify value of local Replicator and replicate with given writeConsistency.

        The current value for the key is passed to the modify function. If there is no current data value for the key the initial value will be passed to the modify function.

        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 local correlation data structures.

        key - (undocumented)
        initial - (undocumented)
        writeConsistency - (undocumented)
        request - (undocumented)
        modify - (undocumented)
    • Method Detail

      • request

        public scala.Option<java.lang.Object> request()
      • modify

        public scala.Function1<scala.Option<A>,​A> modify()
      • 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()
        hashCode in class java.lang.Object
      • toString

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

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