Interface ReadyAction
-
- All Known Implementing Classes:
CompositeAction
,DefaultReadyAction
public interface ReadyAction
An interface that allows thePerCacheInboundInvocationHandler
to 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 void
addListener(ActionListener listener)
It adds a listener that is invoked when this action is ready.boolean
isReady()
void
onException()
Cleanup when the command throws an exception while executing.void
onFinally()
Invoked always after the command is executed and the reply is sent.
-
-
-
Method Detail
-
isReady
boolean isReady()
- Returns:
true
if 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.
-
-