Class NoticeableFutureConverter<T,V>
Object
com.liferay.portal.kernel.concurrent.FutureConverter<T,V>
com.liferay.portal.kernel.concurrent.NoticeableFutureConverter<T,V>
- All Implemented Interfaces:
NoticeableFuture<T>,Future<T>
public abstract class NoticeableFutureConverter<T,V>
extends FutureConverter<T,V>
implements NoticeableFuture<T>
- Author:
- Shuyang Zhou
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddFutureListener(FutureListener<T> futureListener) get()booleanremoveFutureListener(FutureListener<T> futureListener) Methods inherited from class com.liferay.portal.kernel.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>
-