public abstract class ActionRunnable<Response> extends AbstractRunnable
Runnables that need to call ActionListener.onFailure(Throwable) 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(Throwable t)
Calls the action listeners
ActionListener.onFailure(Throwable) method with the given exception. |
doRun, isForceExecution, onAfter, onRejection, runprotected final ActionListener<Response> listener
public ActionRunnable(ActionListener<Response> listener)
public void onFailure(Throwable t)
ActionListener.onFailure(Throwable) method with the given exception.
This method is invoked for all exception thrown by AbstractRunnable.doRun()onFailure in class AbstractRunnableCopyright © 2009–2017. All rights reserved.