public class ObservableFutureTask<T> extends java.util.concurrent.FutureTask<T> implements FutureObserver.ObservableFuture<T>
Modifier and Type | Field and Description |
---|---|
boolean |
done |
List<FutureObserver<T>> |
listeners |
Constructor and Description |
---|
ObservableFutureTask(java.util.concurrent.Callable<T> callable) |
ObservableFutureTask(Runnable r,
T result) |
Modifier and Type | Method and Description |
---|---|
boolean |
addObserver(FutureObserver<T> l)
Adds FutureObserver's to this ObservableFuture.
|
protected void |
done() |
cancel, get, get, isCancelled, isDone, run, runAndReset, set, setException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, get, get, isCancelled, isDone
public final List<FutureObserver<T>> listeners
public volatile boolean done
public ObservableFutureTask(java.util.concurrent.Callable<T> callable)
protected void done()
done
in class java.util.concurrent.FutureTask<T>
public boolean addObserver(FutureObserver<T> l)
FutureObserver.ObservableFuture
addObserver
in interface FutureObserver.ObservableFuture<T>
l
- to observe this.Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.