Package org.infinispan.remoting
Class LocalInvocation
- java.lang.Object
-
- org.infinispan.remoting.LocalInvocation
-
- All Implemented Interfaces:
java.util.concurrent.Callable<Response>
,java.util.function.Function<java.lang.Object,Response>
public class LocalInvocation extends java.lang.Object implements java.util.concurrent.Callable<Response>, java.util.function.Function<java.lang.Object,Response>
Simulates a remote invocation on the local node. This is needed because the transport does not redirect to itself the replicable commands.- Since:
- 7.0
- Author:
- Pedro Ruivo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Response
apply(java.lang.Object retVal)
Response
call()
java.util.concurrent.CompletableFuture<Response>
callAsync()
boolean
equals(java.lang.Object o)
int
hashCode()
static LocalInvocation
newInstance(ResponseGenerator responseGenerator, org.infinispan.commands.remote.CacheRpcCommand command, org.infinispan.commands.CommandsFactory commandsFactory, Address self)
static LocalInvocation
newInstanceFromCache(Cache<?,?> cache, org.infinispan.commands.remote.CacheRpcCommand command)
-
-
-
Method Detail
-
call
public Response call() throws java.lang.Exception
- Specified by:
call
in interfacejava.util.concurrent.Callable<Response>
- Throws:
java.lang.Exception
-
newInstanceFromCache
public static LocalInvocation newInstanceFromCache(Cache<?,?> cache, org.infinispan.commands.remote.CacheRpcCommand command)
-
newInstance
public static LocalInvocation newInstance(ResponseGenerator responseGenerator, org.infinispan.commands.remote.CacheRpcCommand command, org.infinispan.commands.CommandsFactory commandsFactory, Address self)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
callAsync
public java.util.concurrent.CompletableFuture<Response> callAsync()
-
-