Interface ReadyAction
- All Known Implementing Classes:
DefaultReadyAction
public interface ReadyAction
An interface that allows the
PerCacheInboundInvocationHandler to check
when this action is ready.- Since:
- 8.0
- Author:
- Pedro Ruivo
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(ActionListener listener) It adds a listener that is invoked when this action is ready.booleanisReady()voidCleanup when the command throws an exception while executing.voidInvoked always after the command is executed and the reply is sent.
-
Method Details
-
isReady
boolean isReady()- Returns:
trueif ready.
-
addListener
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.
-