Search in sources :

Example 1 with BackupAckCommand

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;
}
Also used : BackupAckCommand(org.infinispan.commands.write.BackupAckCommand)

Example 2 with BackupAckCommand

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();
}
Also used : RpcManager(org.infinispan.remoting.rpc.RpcManager) BiasManager(org.infinispan.scattered.BiasManager) BackupAckCommand(org.infinispan.commands.write.BackupAckCommand)

Aggregations

BackupAckCommand (org.infinispan.commands.write.BackupAckCommand)2 RpcManager (org.infinispan.remoting.rpc.RpcManager)1 BiasManager (org.infinispan.scattered.BiasManager)1