Class FutureStreamJoiner.Completable
- java.lang.Object
-
- com.github.mizool.core.concurrent.FutureStreamJoiner.Completable
-
- Enclosing class:
- FutureStreamJoiner
public static final class FutureStreamJoiner.Completable extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
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.
SeeFutureStreamJoinerfor details.- Parameters:
completableFutures- the futures to joinconcurrencyLimit- the maximum number of incomplete futures at any point in timeexecutorService- where to execute the stream consumer
-
-