public class AsyncCallbackSyncAdapter<T> extends AsyncCallback<T>
Constructor and Description |
---|
AsyncCallbackSyncAdapter() |
Modifier and Type | Method and Description |
---|---|
T |
get()
Returns the result or throws the error of this callback.
|
void |
onError(java.lang.RuntimeException error)
Completes the invocation with an error.
|
void |
onProgress(Progress progress)
Reports progress for the operation invocation.
|
void |
onResult(T result)
Completes the invocation with a result object.
|
public T get() throws java.lang.InterruptedException
#setResult(Object)
java.lang.InterruptedException
- waiting for the result is interruptedjava.lang.RuntimeException
- the error, if set by
#setError(RuntimeException)
public void onProgress(Progress progress)
AsyncCallback
onProgress
in class AsyncCallback<T>
progress
- progress status of the operation invocationpublic void onResult(T result)
AsyncCallback
onResult
in class AsyncCallback<T>
result
- operation resultpublic void onError(java.lang.RuntimeException error)
AsyncCallback
Error
) coming from the provider;
UnresolvedError
if the client bindings do not recognize the vAPI
error from the provider; ClientException
if the client-side
runtime reports an error (e.g. network failure) or some other unchecked
exception like IllegalArgumentException
if an internal problem
occurs in the client-side runtime.onError
in class AsyncCallback<T>
error
- operation error