public class AsyncHandleSyncAdapter<T> extends AsyncHandle<T>
AsyncHandle.| Constructor and Description |
|---|
AsyncHandleSyncAdapter() |
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Returns the result or throws the error of this async handle.
|
void |
setError(RuntimeException value)
Completes the invocation with an error.
|
void |
setResult(T result)
Completes the invocation with an output value.
|
void |
updateProgress(DataValue progress)
Reports progress for the operation invocation.
|
public T get()
setResult(Object)RuntimeException - the error, if set by
setError(RuntimeException)public void setResult(T result)
AsyncHandlesetResult in class AsyncHandle<T>result - operation outputpublic void setError(RuntimeException value)
AsyncHandlesetError in class AsyncHandle<T>value - operation errorpublic void updateProgress(DataValue progress)
AsyncHandleupdateProgress in class AsyncHandle<T>progress - progress status of the operation invocationCopyright © 2022. All rights reserved.