public final class ManyVersionVector extends VersionVector implements scala.Product, scala.Serializable
VersionVector.After$, VersionVector.Before$, VersionVector.Concurrent$, VersionVector.Ordering, VersionVector.Same$, VersionVector.Timestamp$
Constructor and Description |
---|
ManyVersionVector(scala.collection.immutable.TreeMap<UniqueAddress,java.lang.Object> versions) |
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 node)
INTERNAL API
|
abstract static boolean |
equals(java.lang.Object that) |
VersionVector |
increment(UniqueAddress node)
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.
|
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 |
versionAt(UniqueAddress node)
INTERNAL API
|
scala.collection.immutable.TreeMap<UniqueAddress,java.lang.Object> |
versions() |
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 ManyVersionVector(scala.collection.immutable.TreeMap<UniqueAddress,java.lang.Object> versions)
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 scala.collection.immutable.TreeMap<UniqueAddress,java.lang.Object> versions()
public boolean isEmpty()
isEmpty
in class VersionVector
public int size()
size
in class VersionVector
public VersionVector increment(UniqueAddress node)
increment
in class VersionVector
node
- (undocumented)public long versionAt(UniqueAddress node)
versionAt
in class VersionVector
node
- (undocumented)public boolean contains(UniqueAddress node)
contains
in class VersionVector
node
- (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