Callback.Adapter
Constructor and Description |
---|
ExecutorCallback(Executor executor) |
ExecutorCallback(Executor executor,
int maxRecursion) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
alwaysDispatchCompletion() |
void |
failed(Throwable x)
Callback invoked when the operation fails.
|
protected abstract void |
onCompleted() |
protected void |
onFailed(Throwable x) |
void |
succeeded()
Callback invoked when the operation completes.
|
String |
toString() |
public ExecutorCallback(Executor executor)
public ExecutorCallback(Executor executor, int maxRecursion)
public void succeeded()
Callback
Callback invoked when the operation completes.
succeeded
in interface Callback
Callback.failed(Throwable)
protected abstract void onCompleted()
public void failed(Throwable x)
Callback
Callback invoked when the operation fails.
protected void onFailed(Throwable x)
protected boolean alwaysDispatchCompletion()
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.