Package com.liferay.petra.concurrent
Class NoticeableFutureConverter<T,V>
java.lang.Object
com.liferay.petra.concurrent.FutureConverter<T,V>
com.liferay.petra.concurrent.NoticeableFutureConverter<T,V>
- All Implemented Interfaces:
NoticeableFuture<T>
,Future<T>
public abstract class NoticeableFutureConverter<T,V>
extends FutureConverter<T,V>
implements NoticeableFuture<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
addFutureListener
(FutureListener<T> futureListener) get()
boolean
removeFutureListener
(FutureListener<T> futureListener) Methods inherited from class com.liferay.petra.concurrent.FutureConverter
cancel, convert, isCancelled, isDone
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.concurrent.Future
cancel, isCancelled, isDone
-
Constructor Details
-
NoticeableFutureConverter
-
-
Method Details
-
addFutureListener
- Specified by:
addFutureListener
in interfaceNoticeableFuture<T>
-
get
- Specified by:
get
in interfaceFuture<T>
- Overrides:
get
in classFutureConverter<T,
V> - Throws:
ExecutionException
InterruptedException
-
get
public T get(long timeout, TimeUnit timeUnit) throws ExecutionException, InterruptedException, TimeoutException - Specified by:
get
in interfaceFuture<T>
- Overrides:
get
in classFutureConverter<T,
V> - Throws:
ExecutionException
InterruptedException
TimeoutException
-
removeFutureListener
- Specified by:
removeFutureListener
in interfaceNoticeableFuture<T>
-