public abstract class WrappedAsyncResult extends Object implements AsyncResult
| Constructor and Description |
|---|
WrappedAsyncResult(AsyncResult wrapped)
Create a new WrappedAsyncResult for the target AsyncResult
|
| Modifier and Type | Method and Description |
|---|---|
AsyncResult |
getWrappedRequest() |
boolean |
isComplete()
Returns true if the AsyncResult has completed.
|
void |
onFailure(ProviderException result)
If the operation fails this method is invoked with the Exception
that caused the failure.
|
void |
onSuccess()
If the operation succeeds the resulting value produced is set to null and
the waiting parties are signaled.
|
public WrappedAsyncResult(AsyncResult wrapped)
wrapped - The AsyncResult to be wrapped by this AsyncResult instance.public void onFailure(ProviderException result)
AsyncResultonFailure in interface AsyncResultresult - The error that resulted in this asynchronous operation failing.public void onSuccess()
AsyncResultonSuccess in interface AsyncResultpublic boolean isComplete()
AsyncResultisComplete in interface AsyncResultpublic AsyncResult getWrappedRequest()
Copyright © 2013–2019 The Apache Software Foundation. All rights reserved.