T - Result typepublic class BatchingCollector<T> extends java.lang.Object implements LazyResultConsumer<T>
| Constructor and Description |
|---|
BatchingCollector()
Batching Collector with default Max Active settings
|
BatchingCollector(MaxActive maxActive) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(java.util.concurrent.CompletableFuture<T> t) |
java.util.Collection<T> |
getResults() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMaxActive, withResultspublic BatchingCollector(MaxActive maxActive)
maxActive - Controls batch sizepublic BatchingCollector()
public void accept(java.util.concurrent.CompletableFuture<T> t)
accept in interface java.util.function.Consumer<java.util.concurrent.CompletableFuture<T>>public java.util.Collection<T> getResults()
getResults in interface LazyResultConsumer<T>