public class DefaultReadyAction extends Object implements ReadyAction, ActionListener
Action to be executed to check when it is ready.
If an Action is canceled, then the remaining Action are not invoked.| Constructor and Description |
|---|
DefaultReadyAction(ActionState state,
Action... actions) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ActionListener listener)
It adds a listener that is invoked when this action is ready.
|
boolean |
isReady() |
void |
onComplete()
Invoked when an
Action is completed. |
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.
|
void |
registerListener() |
public DefaultReadyAction(ActionState state, Action... actions)
public void registerListener()
public boolean isReady()
isReady in interface ReadyActiontrue if ready.public void addListener(ActionListener listener)
ReadyActionaddListener in interface ReadyActionlistener - the listener to invoke.public void onException()
ReadyActiononException in interface ReadyActionpublic void onComplete()
ActionListenerAction is completed.onComplete in interface ActionListenerpublic void onFinally()
ReadyActiononFinally in interface ReadyActionCopyright © 2022 JBoss by Red Hat. All rights reserved.