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(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 static final NoOpAsyncResult 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
Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.