Class TriangleOrderAction
java.lang.Object
org.infinispan.remoting.inboundhandler.action.TriangleOrderAction
- All Implemented Interfaces:
Action
An
Action that checks if the command is the next to be executed.
This action is used by the triangle algorithm to order updates from the primary owner to the backup owner.
- Since:
- 9.0
- Author:
- Pedro Ruivo
-
Constructor Summary
ConstructorsConstructorDescriptionTriangleOrderAction(org.infinispan.remoting.inboundhandler.TrianglePerCacheInboundInvocationHandler handler, long sequenceNumber, int segmentId) -
Method Summary
Modifier and TypeMethodDescriptioncheck(ActionState state) It checks this action.voidonFinally(ActionState state) Invoked always after the command is executed.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.action.Action
addListener, onException
-
Constructor Details
-
TriangleOrderAction
public TriangleOrderAction(org.infinispan.remoting.inboundhandler.TrianglePerCacheInboundInvocationHandler handler, long sequenceNumber, int segmentId)
-
-
Method Details
-
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. -
onFinally
Description copied from interface:ActionInvoked always after the command is executed.
-