public abstract class ActionRunnable<Response> extends AbstractRunnable
Runnables that need to call ActionListener.onFailure(Exception) in case an uncaught
exception or error is thrown while the actual action is run.| Modifier and Type | Field and Description |
|---|---|
protected ActionListener<Response> |
listener |
| Constructor and Description |
|---|
ActionRunnable(ActionListener<Response> listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(java.lang.Exception e)
Calls the action listeners
ActionListener.onFailure(Exception) method with the given exception. |
doRun, isForceExecution, onAfter, onRejection, runprotected final ActionListener<Response> listener
public ActionRunnable(ActionListener<Response> listener)
public void onFailure(java.lang.Exception e)
ActionListener.onFailure(Exception) method with the given exception.
This method is invoked for all exception thrown by AbstractRunnable.doRun()onFailure in class AbstractRunnable