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, waitMethods 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:
cancelin interfaceFuture<AggregateT>
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<AggregateT>
-
isDone
public boolean isDone()- Specified by:
isDonein interfaceFuture<AggregateT>
-
get
- Specified by:
getin interfaceFuture<AggregateT>- Throws:
InterruptedExceptionExecutionException
-
get
public AggregateT get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
getin interfaceFuture<AggregateT>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-