Package org.apache.pekko.cluster.ddata
Interface RemovedNodePruning
- All Superinterfaces:
ReplicatedData
- All Known Implementing Classes:
GCounter,LWWMap,ManyVersionVector,OneVersionVector,ORMap,ORMultiMap,ORSet,PNCounter,PNCounterMap,VersionVector
ReplicatedData that has support for pruning of data
belonging to a specific node may implement this interface.
When a node is removed from the cluster these methods will be
used by the Replicator to collapse data from the removed node
into some other node in the cluster.
See process description in the 'CRDT Garbage' section of the Replicator
documentation.
-
Method Summary
Modifier and TypeMethodDescriptionscala.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.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.Methods inherited from interface org.apache.pekko.cluster.ddata.ReplicatedData
merge
-
Method Details
-
modifiedByNodes
scala.collection.immutable.Set<UniqueAddress> modifiedByNodes()The nodes that have changed the state for this data and would need pruning when such node is no longer part of the cluster. -
needPruningFrom
Does it have any state changes from a specific node, which has been removed from the cluster. -
prune
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
Remove data entries from a node that has been removed from the cluster and already been pruned.
-