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 TypeMethodDescriptionbooleanaddFutureListener(FutureListener<T> futureListener) get()booleanremoveFutureListener(FutureListener<T> futureListener) Methods inherited from class com.liferay.petra.concurrent.FutureConverter
cancel, convert, isCancelled, isDoneMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.Future
cancel, isCancelled, isDone
-
Constructor Details
-
NoticeableFutureConverter
-
-
Method Details
-
addFutureListener
- Specified by:
addFutureListenerin interfaceNoticeableFuture<T>
-
get
- Specified by:
getin interfaceFuture<T>- Overrides:
getin classFutureConverter<T,V> - Throws:
ExecutionExceptionInterruptedException
-
get
public T get(long timeout, TimeUnit timeUnit) throws ExecutionException, InterruptedException, TimeoutException - Specified by:
getin interfaceFuture<T>- Overrides:
getin classFutureConverter<T,V> - Throws:
ExecutionExceptionInterruptedExceptionTimeoutException
-
removeFutureListener
- Specified by:
removeFutureListenerin interfaceNoticeableFuture<T>
-