Liferay 7.0-ce-b4

com.liferay.portal.kernel.concurrent
Class NoticeableFutureConverter<T,V>

java.lang.Object
  extended by com.liferay.portal.kernel.concurrent.FutureConverter<T,V>
      extended by 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>


Constructor Summary
NoticeableFutureConverter(NoticeableFuture<V> noticeableFuture)
           
 
Method Summary
 boolean addFutureListener(FutureListener<T> futureListener)
           
 T get()
           
 T get(long timeout, TimeUnit timeUnit)
           
 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 Detail

NoticeableFutureConverter

public NoticeableFutureConverter(NoticeableFuture<V> noticeableFuture)
Method Detail

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>

Liferay 7.0-ce-b4