Class AggregateFuture<AggregateT>
java.lang.Object
dev.getelements.elements.rt.routing.AggregateFuture<AggregateT>
- All Implemented Interfaces:
Future<AggregateT>
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State
-
Constructor Summary
ConstructorsConstructorDescriptionAggregateFuture
(Iterable<CompletionStage<AggregateT>> completionStages, Supplier<AggregateT> initial, BinaryOperator<AggregateT> aggregator) -
Method Summary
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
exceptionNow, resultNow, state
-
Constructor Details
-
AggregateFuture
public AggregateFuture(Iterable<CompletionStage<AggregateT>> completionStages, Supplier<AggregateT> initial, BinaryOperator<AggregateT> aggregator)
-
-
Method Details
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) - Specified by:
cancel
in interfaceFuture<AggregateT>
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceFuture<AggregateT>
-
isDone
public boolean isDone()- Specified by:
isDone
in interfaceFuture<AggregateT>
-
get
- Specified by:
get
in interfaceFuture<AggregateT>
- Throws:
InterruptedException
ExecutionException
-
get
public AggregateT get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
get
in interfaceFuture<AggregateT>
- Throws:
InterruptedException
ExecutionException
TimeoutException
-