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);
}
Aggregations