public class ObservableFutureTask<T> extends FutureTask<T> implements FutureObserver.ObservableFuture<T>
Modifier and Type | Field and Description |
---|---|
boolean |
done |
List<FutureObserver<T>> |
listeners |
Constructor and Description |
---|
ObservableFutureTask(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
public final List<FutureObserver<T>> listeners
public volatile boolean done
protected void done()
done
in class FutureTask<T>
public boolean addObserver(FutureObserver<T> l)
FutureObserver.ObservableFuture
addObserver
in interface FutureObserver.ObservableFuture<T>
l
- to observe this.Copyright © 2016–2018. All rights reserved.