T - The type of the object to be returned.public final class CanceledFuture<T> extends AbstractVTNFuture<T>
VTNFuture that cancels the task immediately.| Constructor and Description |
|---|
CanceledFuture() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean intr)
Attempt to cancel execution of the task.
|
T |
get()
A
CancellationException is always thrown. |
T |
get(long timeout,
TimeUnit unit)
A
CancellationException is always thrown. |
boolean |
isCancelled()
Determine whether the task was canceled before it completed normally.
|
boolean |
isDone()
Determine whether the task completed or not.
|
addListener, done, getCause, getExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckedGet, checkedGetpublic boolean cancel(boolean intr)
intr - Unused.true.public boolean isCancelled()
true.public boolean isDone()
true.public T get()
CancellationException is always thrown.CancellationException - Always thrown.public T get(long timeout, TimeUnit unit)
CancellationException is always thrown.timeout - Unused.unit - Unused.CancellationException - Always thrown.Copyright © 2018 OpenDaylight. All rights reserved.