public final class AtomicAsyncCallback<T,R> extends Object implements AsyncCallback<T>
Modifier and Type | Method and Description |
---|---|
void |
init(JsonpRequest<R> _request)
Completes the creation of this callback.
|
void |
onFailure(Throwable x) |
void |
onSuccess(T result) |
static <T,R> AtomicAsyncCallback<T,R> |
wrap(JSONPAtomizer<R> atomizer,
AsyncCallback<T> callback)
Partially creates an AtomicAsyncCallback for init
to finish.
|
public static <T,R> AtomicAsyncCallback<T,R> wrap(JSONPAtomizer<R> atomizer, AsyncCallback<T> callback)
atomizer
- the exchange atomizer to use.callback
- the callback to guard.public void init(JsonpRequest<R> _request)
public void onFailure(Throwable x)
onFailure
in interface AsyncCallback<T>
public void onSuccess(T result)
onSuccess
in interface AsyncCallback<T>