Class/Object

akka.persistence.multidc.crdt

VersionVector

Related Docs: object VersionVector | package crdt

Permalink

sealed abstract class VersionVector extends Serializable

Representation of a Vector-based clock (counting clock), inspired by Lamport logical clocks.

Reference:
   1) Leslie Lamport (1978). "Time, clocks, and the ordering of events in a distributed system". Communications of the ACM 21 (7): 558-565.
   2) Friedemann Mattern (1988). "Virtual Time and Global States of Distributed Systems". Workshop on Parallel and Distributed Algorithms: pp. 215-226

Based on akka.cluster.ddata.VersionVector.

This class is immutable, i.e. "modifying" methods return a new instance.

Annotations
@SerialVersionUID()
Linear Supertypes
Serializable, Serializable, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VersionVector
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type T = VersionVector

    Permalink

Abstract Value Members

  1. abstract def increment(key: String): VersionVector

    Permalink

    Increment the version for the key passed as argument.

    Increment the version for the key passed as argument. Returns a new VersionVector.

  2. abstract def isEmpty: Boolean

    Permalink
  3. abstract def merge(that: VersionVector): VersionVector

    Permalink
  4. abstract def updated(key: String, version: Long): VersionVector

    Permalink
  5. abstract def versionAt(key: String): Long

    Permalink

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(key: String): VersionVector

    Permalink

    Increment the version for the key passed as argument.

    Increment the version for the key passed as argument. Returns a new VersionVector.

  4. def ->[B](y: B): (VersionVector, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from VersionVector to ArrowAssoc[VersionVector] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. def <(that: VersionVector): Boolean

    Permalink

    Returns true if this is before that else false.

    Returns true if this is before that else false.

  6. def <>(that: VersionVector): Boolean

    Permalink

    Returns true if this and that are concurrent else false.

    Returns true if this and that are concurrent else false.

  7. def ==(that: VersionVector): Boolean

    Permalink

    Returns true if this VersionVector has the same history as the 'that' VersionVector else false.

  8. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def >(that: VersionVector): Boolean

    Permalink

    Returns true if this is after that else false.

    Returns true if this is after that else false.

  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def compareTo(that: VersionVector): Ordering

    Permalink

    Compare two version vectors.

    Compare two version vectors. The outcome will be one of the following:

    1. Version 1 is SAME (==)       as Version 2 iff for all i c1(i) == c2(i)
    2. Version 1 is BEFORE (<)      Version 2 iff for all i c1(i) <= c2(i) and there exist a j such that c1(j) < c2(j)
    3. Version 1 is AFTER (>)       Version 2 iff for all i c1(i) >= c2(i) and there exist a j such that c1(j) > c2(j).
    4. Version 1 is CONCURRENT (<>) to Version 2 otherwise.
  13. def ensuring(cond: (VersionVector) ⇒ Boolean, msg: ⇒ Any): VersionVector

    Permalink
    Implicit information
    This member is added by an implicit conversion from VersionVector to Ensuring[VersionVector] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (VersionVector) ⇒ Boolean): VersionVector

    Permalink
    Implicit information
    This member is added by an implicit conversion from VersionVector to Ensuring[VersionVector] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: ⇒ Any): VersionVector

    Permalink
    Implicit information
    This member is added by an implicit conversion from VersionVector to Ensuring[VersionVector] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): VersionVector

    Permalink
    Implicit information
    This member is added by an implicit conversion from VersionVector to Ensuring[VersionVector] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from VersionVector to StringFormat[VersionVector] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. def [B](y: B): (VersionVector, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from VersionVector to ArrowAssoc[VersionVector] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from VersionVector to any2stringadd[VersionVector] performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (versionVector: any2stringadd[VersionVector]).+(other)
    Definition Classes
    any2stringadd

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from VersionVector to any2stringadd[VersionVector]

Inherited by implicit conversion StringFormat from VersionVector to StringFormat[VersionVector]

Inherited by implicit conversion Ensuring from VersionVector to Ensuring[VersionVector]

Inherited by implicit conversion ArrowAssoc from VersionVector to ArrowAssoc[VersionVector]

Ungrouped