public abstract class ActionRunnable<Response> extends AbstractRunnable
Runnable
s 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, run
protected 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 AbstractRunnable
Copyright © 2009–2016. All rights reserved.