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(Throwable 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(Throwable result)
AsyncResult
onFailure
in interface AsyncResult
result
- The error that resulted in this asynchronous operation failing.public void onSuccess()
AsyncResult
onSuccess
in interface AsyncResult
public boolean isComplete()
AsyncResult
isComplete
in interface AsyncResult
public AsyncResult getWrappedRequest()
Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.