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.commons.util.concurrent.CompletableFutures;
import org.infinispan.factories.ComponentRegistry;
import org.infinispan.factories.GlobalComponentRegistry;
import org.infinispan.remoting.transport.Address;
/**
* 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 extends TracedCommand {
/**
* Invoke the command asynchronously.
*
* @since 9.0
* @deprecated since 11.0, please use {@link org.infinispan.commands.remote.CacheRpcCommand#invokeAsync(ComponentRegistry)}
* or {@link GlobalRpcCommand#invokeAsync(GlobalComponentRegistry)} instead.
*/
@Deprecated(forRemoval=true, since = "11.0")
default CompletableFuture
© 2015 - 2025 Weber Informatics LLC | Privacy Policy