org.infinispan.remoting.LocalInvocation Maven / Gradle / Ivy
package org.infinispan.remoting;
import java.util.concurrent.Callable;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionStage;
import java.util.function.Function;
import org.infinispan.Cache;
import org.infinispan.commands.CommandsFactory;
import org.infinispan.commands.remote.CacheRpcCommand;
import org.infinispan.commons.util.concurrent.CompletableFutures;
import org.infinispan.factories.ComponentRegistry;
import org.infinispan.interceptors.locking.ClusteringDependentLogic;
import org.infinispan.remoting.responses.Response;
import org.infinispan.remoting.responses.ResponseGenerator;
import org.infinispan.remoting.transport.Address;
import org.infinispan.util.concurrent.BlockingManager;
/**
* Simulates a remote invocation on the local node. This is needed because the transport does not redirect to itself the
* replicable commands.
*
* @author Pedro Ruivo
* @since 7.0
*/
public class LocalInvocation implements Callable, Function
© 2015 - 2025 Weber Informatics LLC | Privacy Policy