Class DefaultTopologyRunnable
- java.lang.Object
-
- org.infinispan.remoting.inboundhandler.BaseBlockingRunnable
-
- org.infinispan.remoting.inboundhandler.DefaultTopologyRunnable
-
- All Implemented Interfaces:
Runnable
,BlockingRunnable
public class DefaultTopologyRunnable extends BaseBlockingRunnable
The defaultRunnable
for 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 int
commandTopologyId
-
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 CompletableFuture<Response>
beforeInvoke()
boolean
isReady()
String
toString()
-
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 CompletableFuture<Response> beforeInvoke()
- Overrides:
beforeInvoke
in classBaseBlockingRunnable
-
toString
public String toString()
- Overrides:
toString
in classBaseBlockingRunnable
-
-