public final class SpooledAsyncCallback<T> extends Object implements AsyncCallback<T>
| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(Throwable x) |
void |
onSuccess(T result) |
static <T> SpooledAsyncCallback<T> |
wrap(Spool spool,
AsyncCallback<T> callback)
Creates an SpooledAsyncCallback.
|
public static <T> SpooledAsyncCallback<T> wrap(Spool spool, AsyncCallback<T> callback)
spool - the spool to use.callback - the callback to guard.public void onFailure(Throwable x)
onFailure in interface AsyncCallback<T>public void onSuccess(T result)
onSuccess in interface AsyncCallback<T>