public final class OneVersionVector extends VersionVector implements scala.Product, scala.Serializable
VersionVector.After$, VersionVector.Before$, VersionVector.Concurrent$, VersionVector.Ordering, VersionVector.Same$, VersionVector.Timestamp$
Constructor and Description |
---|
OneVersionVector(UniqueAddress node,
long version) |
Modifier and Type | Method and Description |
---|---|
static boolean |
$eq$eq(VersionVector that) |
static boolean |
$greater(VersionVector that) |
static boolean |
$less(VersionVector that) |
static boolean |
$less$greater(VersionVector that) |
static VersionVector |
$plus(Cluster node) |
static VersionVector |
$plus(UniqueAddress node) |
abstract static boolean |
canEqual(java.lang.Object that) |
static VersionVector.Ordering |
compareTo(VersionVector that) |
boolean |
contains(UniqueAddress n)
INTERNAL API
|
abstract static boolean |
equals(java.lang.Object that) |
VersionVector |
increment(UniqueAddress n)
INTERNAL API
|
boolean |
isEmpty() |
VersionVector |
merge(VersionVector that)
Merges this VersionVector with another VersionVector.
|
boolean |
needPruningFrom(UniqueAddress removedNode)
Does it have any state changes from a specific node,
which has been removed from the cluster.
|
UniqueAddress |
node() |
abstract static int |
productArity() |
abstract static java.lang.Object |
productElement(int n) |
static scala.collection.Iterator<java.lang.Object> |
productIterator() |
static java.lang.String |
productPrefix() |
VersionVector |
prune(UniqueAddress removedNode,
UniqueAddress collapseInto)
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. |
VersionVector |
pruningCleanup(UniqueAddress removedNode)
Remove data entries from a node that has been removed from the cluster
and already been pruned.
|
int |
size()
INTERNAL API
|
java.lang.String |
toString() |
long |
version() |
long |
versionAt(UniqueAddress n)
INTERNAL API
|
scala.collection.Iterator<scala.Tuple2<UniqueAddress,java.lang.Object>> |
versionsIterator()
INTERNAL API
|
AfterInstance, apply, apply, apply, apply, BeforeInstance, compareTo, ConcurrentInstance, create, empty, increment, SameInstance
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
$init$, productArity, productElement, productIterator, productPrefix
merge
public OneVersionVector(UniqueAddress node, long version)
public static VersionVector $plus(Cluster node)
public static VersionVector $plus(UniqueAddress node)
public static boolean $less$greater(VersionVector that)
public static boolean $less(VersionVector that)
public static boolean $greater(VersionVector that)
public static boolean $eq$eq(VersionVector that)
public static VersionVector.Ordering compareTo(VersionVector that)
public abstract static boolean canEqual(java.lang.Object that)
public abstract static boolean equals(java.lang.Object that)
public abstract static java.lang.Object productElement(int n)
public abstract static int productArity()
public static scala.collection.Iterator<java.lang.Object> productIterator()
public static java.lang.String productPrefix()
public UniqueAddress node()
public long version()
public boolean isEmpty()
isEmpty
in class VersionVector
public int size()
size
in class VersionVector
public VersionVector increment(UniqueAddress n)
increment
in class VersionVector
n
- (undocumented)public long versionAt(UniqueAddress n)
versionAt
in class VersionVector
n
- (undocumented)public boolean contains(UniqueAddress n)
contains
in class VersionVector
n
- (undocumented)public scala.collection.Iterator<scala.Tuple2<UniqueAddress,java.lang.Object>> versionsIterator()
versionsIterator
in class VersionVector
public VersionVector merge(VersionVector that)
VersionVector
merge
in class VersionVector
that
- (undocumented)public boolean needPruningFrom(UniqueAddress removedNode)
RemovedNodePruning
needPruningFrom
in interface RemovedNodePruning
needPruningFrom
in class VersionVector
removedNode
- (undocumented)public VersionVector prune(UniqueAddress removedNode, UniqueAddress collapseInto)
RemovedNodePruning
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.prune
in interface RemovedNodePruning
prune
in class VersionVector
removedNode
- (undocumented)collapseInto
- (undocumented)public VersionVector pruningCleanup(UniqueAddress removedNode)
RemovedNodePruning
pruningCleanup
in interface RemovedNodePruning
pruningCleanup
in class VersionVector
removedNode
- (undocumented)public java.lang.String toString()
toString
in class java.lang.Object