T
- result type of the async handlepublic class DecoratorAsyncHandle<T> extends AsyncHandle<T>
Modifier and Type | Field and Description |
---|---|
protected AsyncHandle<T> |
decorated |
Constructor and Description |
---|
DecoratorAsyncHandle(AsyncHandle<T> decorated)
Creates a decorator around the specified handle.
|
Modifier and Type | Method and Description |
---|---|
void |
setError(java.lang.RuntimeException error)
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.
|
protected final AsyncHandle<T> decorated
public DecoratorAsyncHandle(AsyncHandle<T> decorated)
decorated
- handle to be decorated; must not be null.public void updateProgress(DataValue progress)
AsyncHandle
updateProgress
in class AsyncHandle<T>
progress
- progress status of the operation invocationpublic void setResult(T result)
AsyncHandle
setResult
in class AsyncHandle<T>
result
- operation outputpublic void setError(java.lang.RuntimeException error)
AsyncHandle
setError
in class AsyncHandle<T>
error
- operation error