Class FutureStreamJoiner.Completable
java.lang.Object
com.github.mizool.core.concurrent.FutureStreamJoiner.Completable
- Enclosing class:
- FutureStreamJoiner
-
Method Summary
Modifier and TypeMethodDescriptionjoin
(Stream<CompletableFuture<Void>> completableFutures, int concurrencyLimit, ExecutorService executorService) Returns a future that will complete normally once all futures in the given stream have completed normally.
-
Method Details
-
join
public CompletableFuture<Void> join(Stream<CompletableFuture<Void>> completableFutures, int concurrencyLimit, ExecutorService executorService) Returns a future that will complete normally once all futures in the given stream have completed normally.
SeeFutureStreamJoiner
for details.- Parameters:
completableFutures
- the futures to joinconcurrencyLimit
- the maximum number of incomplete futures at any point in timeexecutorService
- where to execute the stream consumer
-