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 TypeMethodDescriptionboolean
addFutureListener
(FutureListener<T> futureListener) get()
boolean
removeFutureListener
(FutureListener<T> futureListener) Methods inherited from class com.liferay.portal.kernel.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>
-