Class BasePerCacheInboundInvocationHandler
java.lang.Object
org.infinispan.remoting.inboundhandler.BasePerCacheInboundInvocationHandler
- All Implemented Interfaces:
PerCacheInboundInvocationHandler
- Direct Known Subclasses:
NonTxPerCacheInboundInvocationHandler,TrianglePerCacheInboundInvocationHandler,TxPerCacheInboundInvocationHandler
public abstract class BasePerCacheInboundInvocationHandler
extends Object
implements PerCacheInboundInvocationHandler
Implementation with the default handling methods and utilities methods.
- Since:
- 7.1
- Author:
- Pedro Ruivo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BlockingTaskAwareExecutorServiceprotected Configurationprotected BlockingTaskAwareExecutorService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks if any pending tasks are now ready to be ran and will run in them in a separate thread.intfinal booleanisCommandSentBeforeFirstTopology(int commandTopologyId) booleanvoidsetFirstTopologyAsMember(int firstTopologyAsMember) voidstart()voidstop()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.remoting.inboundhandler.PerCacheInboundInvocationHandler
handle
-
Field Details
-
blockingExecutor
-
nonBlockingExecutor
-
configuration
-
-
Constructor Details
-
BasePerCacheInboundInvocationHandler
public BasePerCacheInboundInvocationHandler()
-
-
Method Details
-
start
public void start() -
stop
public void stop() -
isStopped
public boolean isStopped() -
isCommandSentBeforeFirstTopology
public final boolean isCommandSentBeforeFirstTopology(int commandTopologyId) -
setFirstTopologyAsMember
public void setFirstTopologyAsMember(int firstTopologyAsMember) - Specified by:
setFirstTopologyAsMemberin interfacePerCacheInboundInvocationHandler- Parameters:
firstTopologyAsMember- The first topology in which the local node was a member. Any command with a lower topology id will be ignored.
-
getFirstTopologyAsMember
public int getFirstTopologyAsMember()- Specified by:
getFirstTopologyAsMemberin interfacePerCacheInboundInvocationHandler- Returns:
- The first topology in which the local node was a member. Any command with a lower topology id will be ignored.
-
checkForReadyTasks
public void checkForReadyTasks()Description copied from interface:PerCacheInboundInvocationHandlerChecks if any pending tasks are now ready to be ran and will run in them in a separate thread. This method does not block.- Specified by:
checkForReadyTasksin interfacePerCacheInboundInvocationHandler
-