T - The type of the object to be returned.public abstract class AbstractVTNFuture<T> extends Object implements VTNFuture<T>
VTNFuture.| Constructor and Description |
|---|
AbstractVTNFuture() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(Runnable listener,
Executor executor)
Add a listener to be executed on the specified executor.
|
protected void |
done()
Execute registered listeners.
|
static Throwable |
getCause(Throwable t)
Return a throwable that indicates the actual cause of failure.
|
static VTNException |
getException(Throwable t)
Return a
VTNException which represents the cause of failure. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckedGet, checkedGetpublic static final Throwable getCause(Throwable t)
public static final VTNException getException(Throwable t)
VTNException which represents the cause of failure.t - A Throwable.VTNException which represents the given throwable.protected final void done()
Subclass must call this method when the computation is complete.
public final void addListener(Runnable listener, Executor executor)
addListener in interface com.google.common.util.concurrent.ListenableFuture<T>listener - A listener to run when the computation is complete.executor - A executor to run the given listener on.Copyright © 2018 OpenDaylight. All rights reserved.