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, SameInstanceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait$init$, productArity, productElement, productIterator, productPrefixmergepublic 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 VersionVectorpublic int size()
size in class VersionVectorpublic VersionVector increment(UniqueAddress node)
increment in class VersionVectornode - (undocumented)public long versionAt(UniqueAddress node)
versionAt in class VersionVectornode - (undocumented)public boolean contains(UniqueAddress node)
contains in class VersionVectornode - (undocumented)public scala.collection.Iterator<scala.Tuple2<UniqueAddress,java.lang.Object>> versionsIterator()
versionsIterator in class VersionVectorpublic VersionVector merge(VersionVector that)
VersionVectormerge in class VersionVectorthat - (undocumented)public boolean needPruningFrom(UniqueAddress removedNode)
RemovedNodePruningneedPruningFrom in interface RemovedNodePruningneedPruningFrom in class VersionVectorremovedNode - (undocumented)public VersionVector prune(UniqueAddress removedNode, UniqueAddress collapseInto)
RemovedNodePruningremoved 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 RemovedNodePruningprune in class VersionVectorremovedNode - (undocumented)collapseInto - (undocumented)public VersionVector pruningCleanup(UniqueAddress removedNode)
RemovedNodePruningpruningCleanup in interface RemovedNodePruningpruningCleanup in class VersionVectorremovedNode - (undocumented)public java.lang.String toString()
toString in class java.lang.Object