Package akka.cluster.ddata
Interface RemovedNodePruning
-
- All Superinterfaces:
ReplicatedData
- All Known Implementing Classes:
GCounter
,LWWMap
,ManyVersionVector
,OneVersionVector
,ORMap
,ORMultiMap
,ORSet
,PNCounter
,PNCounterMap
,VersionVector
public interface RemovedNodePruning extends ReplicatedData
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 theReplicator
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.boolean
needPruningFrom(UniqueAddress removedNode)
Does it have any state changes from a specific node, which has been removed from the cluster.RemovedNodePruning
prune(UniqueAddress removedNode, UniqueAddress collapseInto)
When theremoved
node has been removed from the cluster the state changes from that node will be pruned by collapsing the data entries to another node.RemovedNodePruning
pruningCleanup(UniqueAddress removedNode)
Remove data entries from a node that has been removed from the cluster and already been pruned.-
Methods inherited from interface akka.cluster.ddata.ReplicatedData
merge
-
-
-
-
Method Detail
-
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
boolean needPruningFrom(UniqueAddress removedNode)
Does it have any state changes from a specific node, which has been removed from the cluster.
-
prune
RemovedNodePruning prune(UniqueAddress removedNode, UniqueAddress collapseInto)
When theremoved
node has been removed from the cluster the state changes from that node will be pruned by collapsing the data entries to another node.
-
pruningCleanup
RemovedNodePruning pruningCleanup(UniqueAddress removedNode)
Remove data entries from a node that has been removed from the cluster and already been pruned.
-
-