Interface ReadyAction
-
- All Known Implementing Classes:
CompositeAction,DefaultReadyAction
public interface ReadyActionAn interface that allows thePerCacheInboundInvocationHandlerto check when this action is ready.- Since:
- 8.0
- Author:
- Pedro Ruivo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddListener(ActionListener listener)It adds a listener that is invoked when this action is ready.booleanisReady()voidonException()Cleanup when the command throws an exception while executing.voidonFinally()Invoked always after the command is executed and the reply is sent.
-
-
-
Method Detail
-
isReady
boolean isReady()
- Returns:
trueif ready.
-
addListener
void addListener(ActionListener listener)
It adds a listener that is invoked when this action is ready.- Parameters:
listener- the listener to invoke.
-
onException
void onException()
Cleanup when the command throws an exception while executing.
-
onFinally
void onFinally()
Invoked always after the command is executed and the reply is sent.
-
-