OneVersionVector

org.apache.pekko.cluster.ddata.OneVersionVector
final case class OneVersionVector extends VersionVector

Attributes

Source
VersionVector.scala
Graph
Supertypes
trait Product
trait Equals
trait Serializable
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited types

type T = VersionVector

The type of the concrete implementation, e.g. GSet[A]. To be specified by subclass.

The type of the concrete implementation, e.g. GSet[A]. To be specified by subclass.

Attributes

Inherited from:
VersionVector
Source
VersionVector.scala

Value members

Concrete methods

override def isEmpty: Boolean

Attributes

Definition Classes
Source
VersionVector.scala
override def merge(that: VersionVector): VersionVector

Merges this VersionVector with another VersionVector. E.g. merges its versioned history.

Merges this VersionVector with another VersionVector. E.g. merges its versioned history.

Attributes

Definition Classes
Source
VersionVector.scala

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.

Attributes

Definition Classes
Source
VersionVector.scala
override 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.

Attributes

Definition Classes
Source
VersionVector.scala
override 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.

Attributes

Definition Classes
Source
VersionVector.scala
override 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.

Attributes

Definition Classes
Source
VersionVector.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
VersionVector.scala

Inherited methods

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

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

Attributes

Inherited from:
VersionVector
Source
VersionVector.scala
def <(that: VersionVector): Boolean

Returns true if this is before that else false.

Returns true if this is before that else false.

Attributes

Inherited from:
VersionVector
Source
VersionVector.scala
def <>(that: VersionVector): Boolean

Returns true if this and that are concurrent else false.

Returns true if this and that are concurrent else false.

Attributes

Inherited from:
VersionVector
Source
VersionVector.scala
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.

Attributes

Inherited from:
VersionVector
Source
VersionVector.scala
def >(that: VersionVector): Boolean

Returns true if this is after that else false.

Returns true if this is after that else false.

Attributes

Inherited from:
VersionVector
Source
VersionVector.scala

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

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.

Attributes

Inherited from:
VersionVector
Source
VersionVector.scala

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

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

Attributes

Inherited from:
VersionVector
Source
VersionVector.scala

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Deprecated and Inherited methods

def +(node: Cluster): VersionVector

Attributes

Deprecated
[Since version Akka 2.5.20]
Inherited from:
VersionVector
Source
VersionVector.scala

Attributes

Deprecated
[Since version Akka 2.5.20]
Inherited from:
VersionVector
Source
VersionVector.scala