Class DefaultReadyAction
java.lang.Object
org.infinispan.remoting.inboundhandler.action.DefaultReadyAction
- All Implemented Interfaces:
ActionListener,ReadyAction
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(ActionListener listener) It adds a listener that is invoked when this action is ready.booleanisReady()voidInvoked when anActionis completed.voidCleanup when the command throws an exception while executing.voidInvoked always after the command is executed and the reply is sent.void
-
Constructor Details
-
DefaultReadyAction
-
-
Method Details
-
registerListener
public void registerListener() -
isReady
public boolean isReady()- Specified by:
isReadyin interfaceReadyAction- Returns:
trueif ready.
-
addListener
Description copied from interface:ReadyActionIt adds a listener that is invoked when this action is ready.- Specified by:
addListenerin interfaceReadyAction- Parameters:
listener- the listener to invoke.
-
onException
public void onException()Description copied from interface:ReadyActionCleanup when the command throws an exception while executing.- Specified by:
onExceptionin interfaceReadyAction
-
onComplete
public void onComplete()Description copied from interface:ActionListenerInvoked when anActionis completed.- Specified by:
onCompletein interfaceActionListener
-
onFinally
public void onFinally()Description copied from interface:ReadyActionInvoked always after the command is executed and the reply is sent.- Specified by:
onFinallyin interfaceReadyAction
-