public class NoOpAsyncResult extends Object implements AsyncResult
| Modifier and Type | Field and Description |
|---|---|
static NoOpAsyncResult |
INSTANCE |
| Constructor and Description |
|---|
NoOpAsyncResult() |
| Modifier and Type | Method and Description |
|---|---|
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 static final NoOpAsyncResult 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 AsyncResultCopyright © 2013–2019 The Apache Software Foundation. All rights reserved.