Class Replicator.Update<A extends ReplicatedData>

    • Constructor Detail

      • Update

        public Update​(Key<A> key,
                      A initial,
                      Replicator.WriteConsistency writeConsistency,
                      ActorRef<Replicator.UpdateResponse<A>> replyTo,
                      java.util.function.Function<A,​A> modify)
        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.

    • Method Detail

      • key

        public Key<A> key()
      • modify

        public scala.Function1<scala.Option<A>,​A> modify()
      • 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
      • productElementName

        public java.lang.String productElementName​(int x$1)
        Specified by:
        productElementName in interface scala.Product
      • 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