Package com.liferay.petra.concurrent
Class FutureConverter<T,V>
java.lang.Object
com.liferay.petra.concurrent.FutureConverter<T,V>
- All Implemented Interfaces:
Future<T>
- Direct Known Subclasses:
NoticeableFutureConverter
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FutureConverter
-
-
Method Details
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
get
- Specified by:
get
in interfaceFuture<T>
- Throws:
ExecutionException
InterruptedException
-
get
public T get(long timeout, TimeUnit timeUnit) throws ExecutionException, InterruptedException, TimeoutException - Specified by:
get
in interfaceFuture<T>
- Throws:
ExecutionException
InterruptedException
TimeoutException
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceFuture<T>
-
isDone
public boolean isDone() -
convert
- Throws:
Throwable
-