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 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 Type
    Method
    Description
    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.
    boolean
    Does it have any state changes from a specific node, which has been removed from the cluster.
    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.
    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

      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 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.
    • pruningCleanup

      RemovedNodePruning pruningCleanup(UniqueAddress removedNode)
      Remove data entries from a node that has been removed from the cluster and already been pruned.