public abstract class NodeListenerFuture<T> extends java.lang.Object implements NodeListener<T>, java.util.concurrent.Future<T>
TAG| Constructor and Description |
|---|
NodeListenerFuture() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
T |
get() |
T |
get(long timeout,
java.util.concurrent.TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
void |
onException(java.lang.Exception e)
Called when an asynchronous call fails to complete.
|
void |
onSuccess(T token)
Called when an asynchronous call completes successfully.
|
void |
reset() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetStage, onCallbackReceived, onCallbackReceived, parseCallbackpublic boolean cancel(boolean mayInterruptIfRunning)
cancel in interface java.util.concurrent.Future<T>public boolean isCancelled()
isCancelled in interface java.util.concurrent.Future<T>public boolean isDone()
isDone in interface java.util.concurrent.Future<T>public T get() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
get in interface java.util.concurrent.Future<T>java.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionpublic T get(long timeout, java.util.concurrent.TimeUnit unit) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
get in interface java.util.concurrent.Future<T>java.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionpublic void onSuccess(T token)
FRListeneronSuccess in interface FRListener<T>token - the value returnedpublic void onException(java.lang.Exception e)
FRListeneronException in interface FRListener<T>e - the reason for failurepublic void reset()