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