Class DefaultReadyAction

java.lang.Object
org.infinispan.remoting.inboundhandler.action.DefaultReadyAction
All Implemented Interfaces:
ActionListener, ReadyAction

public class DefaultReadyAction extends Object implements ReadyAction, ActionListener
A list of Action to be executed to check when it is ready.

If an Action is canceled, then the remaining Action are not invoked.

Since:
8.0
Author:
Pedro Ruivo
  • Constructor Details

    • DefaultReadyAction

      public DefaultReadyAction(ActionState state, Action... actions)
  • Method Details

    • registerListener

      public void registerListener()
    • isReady

      public boolean isReady()
      Specified by:
      isReady in interface ReadyAction
      Returns:
      true if ready.
    • addListener

      public void addListener(ActionListener listener)
      Description copied from interface: ReadyAction
      It adds a listener that is invoked when this action is ready.
      Specified by:
      addListener in interface ReadyAction
      Parameters:
      listener - the listener to invoke.
    • onException

      public void onException()
      Description copied from interface: ReadyAction
      Cleanup when the command throws an exception while executing.
      Specified by:
      onException in interface ReadyAction
    • onComplete

      public void onComplete()
      Description copied from interface: ActionListener
      Invoked when an Action is completed.
      Specified by:
      onComplete in interface ActionListener
    • onFinally

      public void onFinally()
      Description copied from interface: ReadyAction
      Invoked always after the command is executed and the reply is sent.
      Specified by:
      onFinally in interface ReadyAction