V - public class NonBlockingNotifyingFutureTask<V> extends FutureTask<V> implements NotifyingFuture<V>
| Constructor and Description |
|---|
NonBlockingNotifyingFutureTask(Callable<V> callable,
TaskCounter taskCounter) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(CallableListener<V> listener)
Adds callable listener.
|
V |
get() |
void |
removeListener(CallableListener<V> listener)
Removes callable listener.
|
void |
run() |
cancel, done, get, isCancelled, isDone, runAndReset, set, setExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancel, get, isCancelled, isDonepublic NonBlockingNotifyingFutureTask(Callable<V> callable, TaskCounter taskCounter)
public void run()
run in interface Runnablerun in interface RunnableFuture<V>run in class FutureTask<V>public V get() throws InterruptedException, ExecutionException
get in interface Future<V>get in class FutureTask<V>InterruptedExceptionExecutionExceptionpublic void addListener(CallableListener<V> listener)
NotifyingFutureaddListener in interface NotifyingFuture<V>public void removeListener(CallableListener<V> listener)
NotifyingFutureremoveListener in interface NotifyingFuture<V>