org.infinispan.commands.ReplicableCommand Maven / Gradle / Ivy
package org.infinispan.commands;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionException;
import org.infinispan.context.InvocationContext;
import org.infinispan.remoting.transport.Address;
import org.infinispan.util.concurrent.CompletableFutures;
/**
* The core of the command-based cache framework. Commands correspond to specific areas of functionality in the cache,
* and can be replicated using the {@link org.infinispan.remoting.rpc.RpcManager}
*
* @author [email protected]
* @author Manik Surtani
* @since 4.0
*/
public interface ReplicableCommand {
/**
* Invoke the command asynchronously.
*
*
This method replaces {@link #perform(InvocationContext)} for remote execution.
* The default implementation and {@link #perform(InvocationContext)} will be removed in future versions.
*
*
* @since 9.0
*/
default CompletableFuture
© 2015 - 2025 Weber Informatics LLC | Privacy Policy