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