Class TrianglePerCacheInboundInvocationHandler
- java.lang.Object
-
- org.infinispan.remoting.inboundhandler.BasePerCacheInboundInvocationHandler
-
- org.infinispan.remoting.inboundhandler.TrianglePerCacheInboundInvocationHandler
-
- All Implemented Interfaces:
JmxStatisticsExposer,Action,PerCacheInboundInvocationHandler,LockListener
public class TrianglePerCacheInboundInvocationHandler extends BasePerCacheInboundInvocationHandler implements LockListener, Action
APerCacheInboundInvocationHandlerimplementation for non-transactional and distributed caches that uses the triangle algorithm.- Since:
- 9.0
- Author:
- Pedro Ruivo
-
-
Field Summary
-
Fields inherited from class org.infinispan.remoting.inboundhandler.BasePerCacheInboundInvocationHandler
configuration, MBEAN_COMPONENT_NAME, remoteCommandsExecutor
-
-
Constructor Summary
Constructors Constructor Description TrianglePerCacheInboundInvocationHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionStatuscheck(ActionState state)It checks this action.protected org.infinispan.util.logging.LoggetLog()BlockingTaskAwareExecutorServicegetRemoteExecutor()TriangleOrderManagergetTriangleOrderManager()voidhandle(org.infinispan.commands.remote.CacheRpcCommand command, Reply reply, DeliverOrder order)Handles theCacheRpcCommandfrom other node.protected booleanisTraceEnabled()voidonEvent(LockState state)Invoked when the lock is available.voidonFinally(ActionState state)Invoked always after the command is executed.voidstart()-
Methods inherited from class org.infinispan.remoting.inboundhandler.BasePerCacheInboundInvocationHandler
getAsyncXSitePendingRequests, getAsyncXSiteRequestQueueTime, getAsyncXSiteRequestRunningTime, getAsyncXSiteRequestsReceived, getAsyncXSiteRunningRequests, getFirstTopologyAsMember, getStatisticsEnabled, getSyncXSiteRequestsReceived, isCommandSentBeforeFirstTopology, isStatisticsEnabled, isStopped, registerXSiteActionSequencer, registerXSiteCommandReceiver, resetStatistics, setFirstTopologyAsMember, setStatisticsEnabled, stop
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.remoting.inboundhandler.action.Action
addListener, onException
-
-
-
-
Method Detail
-
start
public void start()
- Overrides:
startin classBasePerCacheInboundInvocationHandler
-
handle
public void handle(org.infinispan.commands.remote.CacheRpcCommand command, Reply reply, DeliverOrder order)Description copied from interface:PerCacheInboundInvocationHandlerHandles theCacheRpcCommandfrom other node.- Specified by:
handlein interfacePerCacheInboundInvocationHandler- Parameters:
command- theCacheRpcCommandto handle-reply- the return value is passed to this object in order to be sent back to the senderorder- theDeliverOrderin which the command was sent
-
onEvent
public void onEvent(LockState state)
Description copied from interface:LockListenerInvoked when the lock is available.- Specified by:
onEventin interfaceLockListener- Parameters:
state- the lock state. Possible values areLockState.ACQUIRED,LockState.TIMED_OUTorLockState.DEADLOCKED.
-
check
public ActionStatus check(ActionState state)
Description copied from interface:ActionIt checks this action. WhenActionStatus.READYorActionStatus.CANCELEDare final states. This method should be thread safe and idempotent since it can be invoked multiple times by multiples threads.
-
getTriangleOrderManager
public TriangleOrderManager getTriangleOrderManager()
-
getRemoteExecutor
public BlockingTaskAwareExecutorService getRemoteExecutor()
-
onFinally
public void onFinally(ActionState state)
Description copied from interface:ActionInvoked always after the command is executed.
-
getLog
protected org.infinispan.util.logging.Log getLog()
- Specified by:
getLogin classBasePerCacheInboundInvocationHandler
-
isTraceEnabled
protected boolean isTraceEnabled()
- Specified by:
isTraceEnabledin classBasePerCacheInboundInvocationHandler
-
-