Class TriangleOrderAction
- java.lang.Object
-
- org.infinispan.remoting.inboundhandler.action.TriangleOrderAction
-
- All Implemented Interfaces:
Action
public class TriangleOrderAction extends Object implements Action
AnAction
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
Constructors Constructor Description TriangleOrderAction(TrianglePerCacheInboundInvocationHandler handler, long sequenceNumber, int segmentId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionStatus
check(ActionState state)
It checks this action.void
onFinally(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:Action
It checks this action. WhenActionStatus.READY
orActionStatus.CANCELED
are 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:Action
Invoked always after the command is executed.
-
-