Package com.logicaldoc.util.concurrent
Class LaxSerialFuture<V>
java.lang.Object
com.logicaldoc.util.concurrent.LaxSerialFuture<V>
- Type Parameters:
- V- Super type of all the futures to wait for
- All Implemented Interfaces:
- Future<V>
A future that waits for availability of a list of other futures and then
 returns the value of the first future
- Since:
- 9.2
- Author:
- Marco Meschieri - LogicalDOC
- 
Nested Class SummaryNested classes/interfaces inherited from interface java.util.concurrent.FutureFuture.State
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.FutureexceptionNow, resultNow, state
- 
Constructor Details- 
LaxSerialFuture
 
- 
- 
Method Details- 
cancelpublic boolean cancel(boolean mayInterruptIfRunning) 
- 
isCancelledpublic boolean isCancelled()- Specified by:
- isCancelledin interface- Future<V>
 
- 
isDonepublic boolean isDone()
- 
get- Specified by:
- getin interface- Future<V>
- Throws:
- InterruptedException
- ExecutionException
 
- 
getAll
- 
getpublic V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
- getin interface- Future<V>
- Throws:
- InterruptedException
- ExecutionException
- TimeoutException
 
- 
getAllpublic List<V> getAll(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException 
 
-