Class TrianglePerCacheInboundInvocationHandler
java.lang.Object
org.infinispan.remoting.inboundhandler.BasePerCacheInboundInvocationHandler
org.infinispan.remoting.inboundhandler.TrianglePerCacheInboundInvocationHandler
- All Implemented Interfaces:
Action,PerCacheInboundInvocationHandler
public class TrianglePerCacheInboundInvocationHandler
extends BasePerCacheInboundInvocationHandler
implements Action
A
PerCacheInboundInvocationHandler implementation 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
blockingExecutor, configuration, nonBlockingExecutor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheck(ActionState state) It checks this action.voidhandle(CacheRpcCommand command, Reply reply, DeliverOrder order) Handles theCacheRpcCommandfrom other node.voidonFinally(ActionState state) Invoked always after the command is executed.voidstart()Methods inherited from class org.infinispan.remoting.inboundhandler.BasePerCacheInboundInvocationHandler
checkForReadyTasks, getFirstTopologyAsMember, isCommandSentBeforeFirstTopology, isStopped, setFirstTopologyAsMember, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.remoting.inboundhandler.action.Action
addListener, onException
-
Constructor Details
-
TrianglePerCacheInboundInvocationHandler
public TrianglePerCacheInboundInvocationHandler()
-
-
Method Details
-
start
public void start()- Overrides:
startin classBasePerCacheInboundInvocationHandler
-
handle
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
-
check
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
-
onFinally
Description copied from interface:ActionInvoked always after the command is executed.
-