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, isDone
public 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>
ExecutionException
InterruptedException
public T get(long timeout, TimeUnit timeUnit) throws ExecutionException, InterruptedException, TimeoutException
get
in interface Future<T>
get
in class FutureConverter<T,V>
ExecutionException
InterruptedException
TimeoutException
public boolean removeFutureListener(FutureListener<T> futureListener)
removeFutureListener
in interface NoticeableFuture<T>