public class DefaultNoticeableFuture<T> extends FutureTask<T> implements NoticeableFuture<T>
Constructor and Description |
---|
DefaultNoticeableFuture() |
DefaultNoticeableFuture(Callable<T> callable) |
DefaultNoticeableFuture(Runnable runnable,
T result) |
Modifier and Type | Method and Description |
---|---|
boolean |
addFutureListener(FutureListener<T> futureListener) |
protected void |
done() |
boolean |
removeFutureListener(FutureListener<T> futureListener) |
void |
set(T t) |
void |
setException(Throwable t) |
public DefaultNoticeableFuture()
public DefaultNoticeableFuture(Callable<T> callable)
public DefaultNoticeableFuture(Runnable runnable, T result)
public boolean addFutureListener(FutureListener<T> futureListener)
addFutureListener
in interface NoticeableFuture<T>
public boolean removeFutureListener(FutureListener<T> futureListener)
removeFutureListener
in interface NoticeableFuture<T>
public void setException(Throwable t)
setException
in class FutureTask<T>
protected void done()
done
in class FutureTask<T>