Package org.apache.pekko.cluster.ddata
Class OneVersionVector
java.lang.Object
org.apache.pekko.cluster.ddata.VersionVector
org.apache.pekko.cluster.ddata.OneVersionVector
- All Implemented Interfaces:
Serializable,RemovedNodePruning,ReplicatedData,ReplicatedDataSerialization,scala.Equals,scala.Product
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.pekko.cluster.ddata.VersionVector
VersionVector.After$, VersionVector.Before$, VersionVector.Concurrent$, VersionVector.Ordering, VersionVector.Same$, VersionVector.Timestamp$ -
Method Summary
Modifier and TypeMethodDescriptionstatic OneVersionVectorapply(UniqueAddress node, long version) booleancopy(UniqueAddress node, long version) longbooleaninthashCode()booleanisEmpty()merge(VersionVector that) Merges this VersionVector with another VersionVector.scala.collection.immutable.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.booleanneedPruningFrom(UniqueAddress removedNode) Does it have any state changes from a specific node, which has been removed from the cluster.node()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>prune(UniqueAddress removedNode, UniqueAddress collapseInto) When theremovednode has been removed from the cluster the state changes from that node will be pruned by collapsing the data entries to another node.pruningCleanup(UniqueAddress removedNode) Remove data entries from a node that has been removed from the cluster and already been pruned.toString()static scala.Option<scala.Tuple2<UniqueAddress,Object>> unapply(OneVersionVector x$0) longversion()Methods inherited from class org.apache.pekko.cluster.ddata.VersionVector
$colon$plus, $eq$eq, $greater, $less, $less$greater, AfterInstance, apply, apply, BeforeInstance, compareTo, ConcurrentInstance, create, empty, increment, SameInstanceMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNamesMethods inherited from interface org.apache.pekko.cluster.ddata.ReplicatedData
merge
-
Method Details
-
apply
-
unapply
-
node
-
version
public long version() -
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin classVersionVector
-
merge
Description copied from class:VersionVectorMerges this VersionVector with another VersionVector. E.g. merges its versioned history.- Specified by:
mergein classVersionVector
-
modifiedByNodes
Description copied from interface:RemovedNodePruningThe nodes that have changed the state for this data and would need pruning when such node is no longer part of the cluster.- Specified by:
modifiedByNodesin interfaceRemovedNodePruning
-
needPruningFrom
Description copied from interface:RemovedNodePruningDoes it have any state changes from a specific node, which has been removed from the cluster.- Specified by:
needPruningFromin interfaceRemovedNodePruning- Specified by:
needPruningFromin classVersionVector
-
prune
Description copied from interface:RemovedNodePruningWhen theremovednode has been removed from the cluster the state changes from that node will be pruned by collapsing the data entries to another node.- Specified by:
prunein interfaceRemovedNodePruning- Specified by:
prunein classVersionVector
-
pruningCleanup
Description copied from interface:RemovedNodePruningRemove data entries from a node that has been removed from the cluster and already been pruned.- Specified by:
pruningCleanupin interfaceRemovedNodePruning- Specified by:
pruningCleanupin classVersionVector
-
toString
-
copy
-
copy$default$1
-
copy$default$2
public long copy$default$2() -
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
equals
-