Package com.logicaldoc.util.concurrent
Class FutureElaboration<T,V>
java.lang.Object
com.logicaldoc.util.concurrent.FutureElaboration<T,V>
- Type Parameters:
T
- Type of the object being elaboratedV
- Type of the wrapped future
- All Implemented Interfaces:
Future<V>
- Direct Known Subclasses:
DocumentFuture
A future that wraps an other future representing some kind of elaboration on a specified object
- Since:
- 9.2
- Author:
- Marco Meschieri - LogicalDOC
-
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
Constructor Details
-
FutureElaboration
-
-
Method Details
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceFuture<T>
-
isDone
public boolean isDone() -
get
- Specified by:
get
in interfaceFuture<T>
- Throws:
InterruptedException
ExecutionException
-
get
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
get
in interfaceFuture<T>
- Throws:
InterruptedException
ExecutionException
TimeoutException
-
getObject
-