Search in sources :

Example 1 with IracCleanupKeyCommand

use of org.infinispan.commands.irac.IracCleanupKeyCommand in project infinispan by infinispan.

the class DefaultIracManager method removeStateFromCluster.

private void removeStateFromCluster(IracManagerKeyInfo state) {
    if (log.isTraceEnabled()) {
        log.tracef("Replication completed for state %s", state);
    }
    // removes the key from the "updated keys map" in all owners.
    DistributionInfo dInfo = getDistributionInfo(state.getSegment());
    IracCleanupKeyCommand cmd = commandsFactory.buildIracCleanupKeyCommand(state.getSegment(), state.getKey(), state.getOwner());
    rpcManager.sendToMany(dInfo.writeOwners(), cmd, DeliverOrder.NONE);
    removeStateFromLocal(state);
}
Also used : IracCleanupKeyCommand(org.infinispan.commands.irac.IracCleanupKeyCommand) DistributionInfo(org.infinispan.distribution.DistributionInfo)

Aggregations

IracCleanupKeyCommand (org.infinispan.commands.irac.IracCleanupKeyCommand)1 DistributionInfo (org.infinispan.distribution.DistributionInfo)1