final case class OneVersionVector extends VersionVector with Product with Serializable
- Alphabetic
- By Inheritance
- OneVersionVector
- Product
- Equals
- VersionVector
- RemovedNodePruning
- ReplicatedDataSerialization
- Serializable
- ReplicatedData
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Type Members
- type T = VersionVector
The type of the concrete implementation, e.g.
The type of the concrete implementation, e.g.
GSet[A]
. To be specified by subclass.- Definition Classes
- VersionVector → ReplicatedData
Value Members
- def :+(node: SelfUniqueAddress): VersionVector
Increment the version for the node passed as argument.
Increment the version for the node passed as argument. Returns a new VersionVector.
- Definition Classes
- VersionVector
- def <(that: VersionVector): Boolean
Returns true if
this
is beforethat
else false.Returns true if
this
is beforethat
else false.- Definition Classes
- VersionVector
- def <>(that: VersionVector): Boolean
Returns true if
this
andthat
are concurrent else false.Returns true if
this
andthat
are concurrent else false.- Definition Classes
- VersionVector
- def ==(that: VersionVector): Boolean
Returns true if this VersionVector has the same history as the 'that' VersionVector else false.
Returns true if this VersionVector has the same history as the 'that' VersionVector else false.
- Definition Classes
- VersionVector
- def >(that: VersionVector): Boolean
Returns true if
this
is afterthat
else false.Returns true if
this
is afterthat
else false.- Definition Classes
- VersionVector
- def compareTo(that: VersionVector): Ordering
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.
- Definition Classes
- VersionVector
- def increment(node: SelfUniqueAddress): VersionVector
Increment the version for the node passed as argument.
Increment the version for the node passed as argument. Returns a new VersionVector.
- Definition Classes
- VersionVector
- def isEmpty: Boolean
- Definition Classes
- OneVersionVector → VersionVector
- def merge(that: VersionVector): VersionVector
Merges this VersionVector with another VersionVector.
Merges this VersionVector with another VersionVector. E.g. merges its versioned history.
- Definition Classes
- OneVersionVector → VersionVector → ReplicatedData
- def modifiedByNodes: Set[UniqueAddress]
The nodes that have changed the state for this data and would need pruning when such node is no longer part of the cluster.
The nodes that have changed the state for this data and would need pruning when such node is no longer part of the cluster.
- Definition Classes
- OneVersionVector → RemovedNodePruning
- def needPruningFrom(removedNode: UniqueAddress): Boolean
Does it have any state changes from a specific node, which has been removed from the cluster.
Does it have any state changes from a specific node, which has been removed from the cluster.
- Definition Classes
- OneVersionVector → VersionVector → RemovedNodePruning
- val node: UniqueAddress
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def prune(removedNode: UniqueAddress, collapseInto: UniqueAddress): VersionVector
When the
removed
node has been removed from the cluster the state changes from that node will be pruned by collapsing the data entries to another node.When the
removed
node has been removed from the cluster the state changes from that node will be pruned by collapsing the data entries to another node.- Definition Classes
- OneVersionVector → VersionVector → RemovedNodePruning
- def pruningCleanup(removedNode: UniqueAddress): VersionVector
Remove data entries from a node that has been removed from the cluster and already been pruned.
Remove data entries from a node that has been removed from the cluster and already been pruned.
- Definition Classes
- OneVersionVector → VersionVector → RemovedNodePruning
- def toString(): String
- Definition Classes
- OneVersionVector → AnyRef → Any
- val version: Long
Deprecated Value Members
- def +(node: Cluster): VersionVector
- Definition Classes
- VersionVector
- Annotations
- @deprecated
- Deprecated
(Since version 2.5.20) Use
:+
that takes aSelfUniqueAddress
parameter instead.
- def increment(node: Cluster): VersionVector
- Definition Classes
- VersionVector
- Annotations
- @deprecated
- Deprecated
(Since version 2.5.20) Use
increment
that takes aSelfUniqueAddress
parameter instead.