T
- result type of the async handlepublic class DecoratorAsyncHandle<T> extends AsyncHandle<T>
Constructor and Description |
---|
DecoratorAsyncHandle(AsyncHandle<T> decorated)
Creates a decorator around the specified handle.
|
Modifier and Type | Method and Description |
---|---|
void |
setError(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.
|
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(RuntimeException error)
AsyncHandle
setError
in class AsyncHandle<T>
error
- operation errorCopyright © 2016. All Rights Reserved.