Class DefaultTopologyRunnable
- java.lang.Object
-
- org.infinispan.remoting.inboundhandler.BaseBlockingRunnable
-
- org.infinispan.remoting.inboundhandler.DefaultTopologyRunnable
-
- All Implemented Interfaces:
java.lang.Runnable,BlockingRunnable
public class DefaultTopologyRunnable extends BaseBlockingRunnable
The defaultRunnablefor the remote commands receives. It checks the command topology and ensures that the topology higher or equal is installed in this node.- Since:
- 8.0
- Author:
- Pedro Ruivo
-
-
Field Summary
Fields Modifier and Type Field Description protected intcommandTopologyId
-
Constructor Summary
Constructors Constructor Description DefaultTopologyRunnable(BasePerCacheInboundInvocationHandler handler, org.infinispan.commands.remote.CacheRpcCommand command, Reply reply, TopologyMode topologyMode, int commandTopologyId, boolean sync)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.concurrent.CompletableFuture<Response>beforeInvoke()booleanisReady()java.lang.StringtoString()-
Methods inherited from class org.infinispan.remoting.inboundhandler.BaseBlockingRunnable
afterInvoke, onException, onFinally, run
-
-
-
-
Constructor Detail
-
DefaultTopologyRunnable
public DefaultTopologyRunnable(BasePerCacheInboundInvocationHandler handler, org.infinispan.commands.remote.CacheRpcCommand command, Reply reply, TopologyMode topologyMode, int commandTopologyId, boolean sync)
-
-
Method Detail
-
isReady
public boolean isReady()
- Returns:
- true if this Runnable is ready to be executed without blocking
-
beforeInvoke
protected java.util.concurrent.CompletableFuture<Response> beforeInvoke()
- Overrides:
beforeInvokein classBaseBlockingRunnable
-
toString
public java.lang.String toString()
- Overrides:
toStringin classBaseBlockingRunnable
-
-