T - Result typepublic class BatchingCollector<T> extends java.lang.Object implements LazyResultConsumer<T>
| Constructor and Description |
|---|
BatchingCollector(MaxActive maxActive,
BlockingStream<T> blocking) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(FastFuture<T> t) |
void |
block(java.util.function.Function<FastFuture<T>,T> safeJoin) |
java.util.Collection<FastFuture<T>> |
getAllResults() |
java.util.Collection<FastFuture<T>> |
getResults() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithResultspublic BatchingCollector(MaxActive maxActive, BlockingStream<T> blocking)
maxActive - Controls batch sizepublic void accept(FastFuture<T> t)
accept in interface java.util.function.Consumer<FastFuture<T>>public void block(java.util.function.Function<FastFuture<T>,T> safeJoin)
block in interface LazyResultConsumer<T>public java.util.Collection<FastFuture<T>> getResults()
getResults in interface LazyResultConsumer<T>public java.util.Collection<FastFuture<T>> getAllResults()
getAllResults in interface LazyResultConsumer<T>