Class FutureConverter<T,V>
java.lang.Object
com.liferay.portal.kernel.concurrent.FutureConverter<T,V>
- All Implemented Interfaces:
Future<T>
- Direct Known Subclasses:
NoticeableFutureConverter
- Author:
- Shuyang Zhou
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
Constructor Details
-
FutureConverter
-
-
Method Details
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
get
- Specified by:
getin interfaceFuture<T>- Throws:
ExecutionExceptionInterruptedException
-
get
public T get(long timeout, TimeUnit timeUnit) throws ExecutionException, InterruptedException, TimeoutException - Specified by:
getin interfaceFuture<T>- Throws:
ExecutionExceptionInterruptedExceptionTimeoutException
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<T>
-
isDone
public boolean isDone() -
convert
- Throws:
Throwable
-