public abstract class NoticeableFutureConverter<T,V> extends FutureConverter<T,V> implements NoticeableFuture<T>
| Constructor and Description |
|---|
NoticeableFutureConverter(NoticeableFuture<V> noticeableFuture) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addFutureListener(FutureListener<T> futureListener) |
T |
get() |
T |
get(long timeout,
TimeUnit timeUnit) |
boolean |
removeFutureListener(FutureListener<T> futureListener) |
cancel, convert, isCancelled, isDoneclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancel, isCancelled, isDonepublic NoticeableFutureConverter(NoticeableFuture<V> noticeableFuture)
public boolean addFutureListener(FutureListener<T> futureListener)
addFutureListener in interface NoticeableFuture<T>public T get() throws ExecutionException, InterruptedException
get in interface Future<T>get in class FutureConverter<T,V>ExecutionExceptionInterruptedExceptionpublic T get(long timeout, TimeUnit timeUnit) throws ExecutionException, InterruptedException, TimeoutException
get in interface Future<T>get in class FutureConverter<T,V>ExecutionExceptionInterruptedExceptionTimeoutExceptionpublic boolean removeFutureListener(FutureListener<T> futureListener)
removeFutureListener in interface NoticeableFuture<T>