Class TriangleOrderAction
- java.lang.Object
-
- org.infinispan.remoting.inboundhandler.action.TriangleOrderAction
-
- All Implemented Interfaces:
Action
public class TriangleOrderAction extends Object implements Action
AnActionthat 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
Constructors Constructor Description TriangleOrderAction(TrianglePerCacheInboundInvocationHandler handler, long sequenceNumber, int segmentId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionStatuscheck(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, wait
-
Methods inherited from interface org.infinispan.remoting.inboundhandler.action.Action
addListener, onException
-
-
-
-
Constructor Detail
-
TriangleOrderAction
public TriangleOrderAction(TrianglePerCacheInboundInvocationHandler handler, long sequenceNumber, int segmentId)
-
-
Method Detail
-
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.
-
onFinally
public void onFinally(ActionState state)
Description copied from interface:ActionInvoked always after the command is executed.
-
-