Class TriangleOrderAction

java.lang.Object
org.infinispan.remoting.inboundhandler.action.TriangleOrderAction
All Implemented Interfaces:
Action

public class TriangleOrderAction extends Object implements 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 Details

    • TriangleOrderAction

      public TriangleOrderAction(org.infinispan.remoting.inboundhandler.TrianglePerCacheInboundInvocationHandler handler, long sequenceNumber, int segmentId)
  • Method Details

    • check

      public ActionStatus check(ActionState state)
      Description copied from interface: Action
      It checks this action.

      When ActionStatus.READY or ActionStatus.CANCELED are final states.

      This method should be thread safe and idempotent since it can be invoked multiple times by multiples threads.

      Specified by:
      check in interface Action
      Parameters:
      state - the current state.
      Returns:
      the status of this action.
    • onFinally

      public void onFinally(ActionState state)
      Description copied from interface: Action
      Invoked always after the command is executed.
      Specified by:
      onFinally in interface Action
      Parameters:
      state - the current state.\