Class LWWRegister$

  • All Implemented Interfaces:
    java.io.Serializable, scala.Serializable

    public class LWWRegister$
    extends java.lang.Object
    implements scala.Serializable
    param: currentTimestamp the current timestamp value of the LWWRegister param: value the register value to set and associate with the returned timestamp
    See Also:
    Serialized Form
    • Field Detail

      • MODULE$

        public static final LWWRegister$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • LWWRegister$

        public LWWRegister$()
    • Method Detail

      • defaultClock

        public <A> LWWRegister.Clock<A> defaultClock()
        The default LWWRegister.Clock is using max value of System.currentTimeMillis() and currentTimestamp + 1.
        Returns:
        (undocumented)
      • reverseClock

        public <A> LWWRegister.Clock<A> reverseClock()
        This LWWRegister.Clock can be used for first-write-wins semantics. It is using min value of -System.currentTimeMillis() and currentTimestamp + 1, i.e. it is counting backwards.
        Returns:
        (undocumented)
      • apply

        public <A> LWWRegister<A> apply​(UniqueAddress node,
                                        A initialValue,
                                        LWWRegister.Clock<A> clock)
        INTERNAL API
        Parameters:
        node - (undocumented)
        initialValue - (undocumented)
        clock - (undocumented)
        Returns:
        (undocumented)
      • apply

        public <A> LWWRegister<A> apply​(A initialValue,
                                        Cluster node,
                                        LWWRegister.Clock<A> clock)
        Deprecated.
        Use `apply` that takes a `SelfUniqueAddress` parameter instead. Since 2.5.20.
      • apply$default$3

        public <A> LWWRegister.Clock<A> apply$default$3​(A initialValue)
      • create

        public <A> LWWRegister<A> create​(A initialValue,
                                         SelfUniqueAddress node,
                                         LWWRegister.Clock<A> clock)
        Scala API Creates a LWWRegister with implicits, given deprecated apply functions using Cluster constrain overloading.
        Parameters:
        initialValue - (undocumented)
        node - (undocumented)
        clock - (undocumented)
        Returns:
        (undocumented)
      • create

        public <A> LWWRegister<A> create​(Cluster node,
                                         A initialValue)
        Deprecated.
        Use `create` that takes a `SelfUniqueAddress` parameter instead. Since 2.5.20.
        Java API
        Parameters:
        node - (undocumented)
        initialValue - (undocumented)
        Returns:
        (undocumented)
      • create

        public <A> LWWRegister<A> create​(Cluster node,
                                         A initialValue,
                                         LWWRegister.Clock<A> clock)
        Deprecated.
        Use `create` that takes a `SelfUniqueAddress` parameter instead. Since 2.5.20.
        Java API
        Parameters:
        node - (undocumented)
        initialValue - (undocumented)
        clock - (undocumented)
        Returns:
        (undocumented)
      • create

        public <A> LWWRegister<A> create​(SelfUniqueAddress node,
                                         A initialValue,
                                         LWWRegister.Clock<A> clock)
        Java API
        Parameters:
        node - (undocumented)
        initialValue - (undocumented)
        clock - (undocumented)
        Returns:
        (undocumented)
      • create

        public <A> LWWRegister<A> create​(SelfUniqueAddress node,
                                         A initialValue)
        Java API
        Parameters:
        node - (undocumented)
        initialValue - (undocumented)
        Returns:
        (undocumented)
      • create$default$3

        public <A> LWWRegister.Clock<A> create$default$3​(A initialValue)
      • unapply

        public <A> scala.Option<A> unapply​(LWWRegister<A> c)
        Extract the LWWRegister.value().
        Parameters:
        c - (undocumented)
        Returns:
        (undocumented)