use of org.infinispan.commands.write.BackupAckCommand in project infinispan by infinispan.
the class TriangleAckExternalizer method backupAckCommand.
private BackupAckCommand backupAckCommand(ObjectInput input) throws IOException, ClassNotFoundException {
BackupAckCommand command = new BackupAckCommand(ByteString.readObject(input));
command.readFrom(input);
return command;
}
use of org.infinispan.commands.write.BackupAckCommand in project infinispan by infinispan.
the class RevokeBiasCommand method invokeAsync.
@Override
public CompletionStage<?> invokeAsync(ComponentRegistry componentRegistry) throws Throwable {
BiasManager biasManager = componentRegistry.getBiasManager().running();
for (Object key : keys) {
biasManager.revokeLocalBias(key);
}
// ackTarget null means that this message is sent synchronously by primary owner == originator
if (ackTarget != null) {
RpcManager rpcManager = componentRegistry.getRpcManager().running();
rpcManager.sendTo(ackTarget, new BackupAckCommand(cacheName, id, topologyId), DeliverOrder.NONE);
}
return CompletableFutures.completedNull();
}
Aggregations