com.liferay.portal.kernel.concurrent
Class NoticeableFutureConverter<T,V>
java.lang.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>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoticeableFutureConverter
public NoticeableFutureConverter(NoticeableFuture<V> noticeableFuture)
addFutureListener
public boolean addFutureListener(FutureListener<T> futureListener)
- Specified by:
addFutureListener in interface NoticeableFuture<T>
get
public T get()
throws ExecutionException,
InterruptedException
- Specified by:
get in interface Future<T>- Overrides:
get in class FutureConverter<T,V>
- Throws:
ExecutionException
InterruptedException
get
public T get(long timeout,
TimeUnit timeUnit)
throws ExecutionException,
InterruptedException,
TimeoutException
- Specified by:
get in interface Future<T>- Overrides:
get in class FutureConverter<T,V>
- Throws:
ExecutionException
InterruptedException
TimeoutException
removeFutureListener
public boolean removeFutureListener(FutureListener<T> futureListener)
- Specified by:
removeFutureListener in interface NoticeableFuture<T>