public class LazyFutureStreamImpl<U> extends java.lang.Object implements LazyFutureStream<U>
softener
Constructor and Description |
---|
LazyFutureStreamImpl(LazyReact lazyReact,
java.util.stream.Stream<U> stream) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel the CompletableFutures in this stage of the stream
|
void |
close() |
<R,A> R |
collect(java.util.stream.Collector<? super U,A,R> collector) |
void |
forwardErrors(java.util.function.Consumer<java.lang.Throwable> c) |
LazyReact |
getPopulator() |
com.nurkiewicz.asyncretry.RetryExecutor |
getRetrier() |
java.util.concurrent.Executor |
getTaskExecutor() |
boolean |
isAsync() |
void |
returnPopulator(LazyReact service) |
LazyFutureStream<U> |
withAsync(boolean b) |
LazyFutureStream<U> |
withLastActive(LazyStreamWrapper w) |
LazyFutureStream<U> |
withRetrier(com.nurkiewicz.asyncretry.RetryExecutor retry) |
LazyFutureStream<U> |
withTaskExecutor(java.util.concurrent.Executor e) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
async, batch, batchBySize, batchBySize, batchBySizeAndTime, batchByTime, batchByTime, boundedWaitFree, capture, cast, close, closeAll, collect, concat, concat, concat, control, convertToEagerStream, copy, crossJoin, cycle, cycle, cycleUntil, cycleWhile, debounce, distinct, duplicate, duplicateFutures, duplicateFuturesSeq, duplicateFutureStream, empty, filter, findFirst, firstOf, fixedDelay, flatMap, flatMapCompletableFuture, flatMapCompletableFutureSync, forEach, fromStream, fromStreamOfFutures, generate, generate, generate, getSimpleReact, getSubscription, innerJoin, intersperse, iterate, jitter, lazyFutureStream, lazyFutureStream, lazyFutureStream, lazyFutureStream, lazyFutureStreamFrom, lazyFutureStreamFromIterable, leftOuterJoin, limit, limitUntil, limitUntil, limitWhile, limitWhile, map, maxActive, mergeLatest, of, of, ofThread, ofThread, ofType, onClose, onEmpty, onEmptyGet, onEmptyThrow, onePer, onFail, onFail, parallel, parallel, partition, partitionFutureStream, peek, peekSync, react, react, reduce, reduce, reduce, retry, reverse, rightOuterJoin, scanLeft, scanRight, self, sequential, shard, shuffle, shuffle, skip, skipUntil, skipWhile, slice, sliding, sliding, sorted, sorted, stream, subscribe, switchOnNextValue, sync, then, then, thenSync, toQueue, unboundedWaitFree, unordered, withLazyCollector, withParallelReduction, withQueueFactory, withSubscription, xPer, zip, zip, zip, zip, zipFutures, zipFutures, zipFuturesWithIndex, zipWithIndex
assureSimpleReactException, copySimpleReactStream, doOnEach, doOnEachSync, filterSync, getLastActive, handleExceptions, streamCompletableFutures, withErrorHandler
getErrorHandler
getErrorHandler, getLastActive, getLazyCollector, getMaxActive, getParallelReduction, run, run, runContinuation, runOn, runOnCurrent, runThread
allMatch, anyMatch, batchBySizeAndTime, cast, chunkLastReadIterator, chunkSinceLastRead, count, findAny, firstValue, flatMapToDouble, flatMapToInt, flatMapToLong, forEachOrdered, futureOperations, futureOperations, getLastActive, intersperse, isParallel, iterator, lift, lift2, mapToDouble, mapToInt, mapToLong, max, min, noneMatch, ofType, reversedIterator, single, slice, spliterator, toArray, toArray, toConcurrentLazyCollection, toLazyCollection
cast, concat, crossJoin, crossJoin, crossJoin, crossJoin, crossJoin, crossJoin, crossJoin, cycle, distinct, duplicate, foldLeft, foldLeft, foldRight, foldRight, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, intersperse, isEmpty, isNotEmpty, join, join, join, join, join, join, limit, maxBy, maxBy, minBy, minBy, ofType, partition, reverse, scanLeft, scanRight, seq, seq, seq, seq, seq, seq, seq, seq, seq, seq, seq, shuffle, shuffle, skip, skipUntil, skipWhile, slice, sorted, splitAt, splitAt, splitAtHead, splitAtHead, toCollection, toCollection, toList, toList, toList, toMap, toMap, toMap, toSet, toSet, toSet, toString, toString, toString, unfold, unzip, unzip, unzip, unzip, zip, zip, zip, zip, zip, zip, zip, zip, zip, zip, zip, zip, zipWithIndex
getQueueFactory, simpleReactStream, simpleReactStream, simpleReactStream, simpleReactStream, simpleReactStreamFrom, simpleReactStreamFromIterable
add, addToQueue, toQueue, toQueue
getQueueFactory
getLastActive, getPublisherExecutor, subscribeAsync, subscribeOn, withPublisherExecutor
getLastActive, subscribeSync
public void forwardErrors(java.util.function.Consumer<java.lang.Throwable> c)
forwardErrors
in interface FutureStreamAsyncPublisher<U>
forwardErrors
in interface FutureStreamSynchronousPublisher<U>
public LazyReact getPopulator()
getPopulator
in interface LazyToQueue<U>
public void returnPopulator(LazyReact service)
returnPopulator
in interface LazyToQueue<U>
public <R,A> R collect(java.util.stream.Collector<? super U,A,R> collector)
collect
in interface java.util.stream.Stream<U>
public void close()
public LazyFutureStream<U> withAsync(boolean b)
withAsync
in interface ConfigurableStream<U,FastFuture<U>>
withAsync
in interface LazyFutureStream<U>
withAsync
in interface LazySimpleReactStream<U>
public java.util.concurrent.Executor getTaskExecutor()
getTaskExecutor
in interface ConfigurableStream<U,FastFuture<U>>
getTaskExecutor
in interface FutureStream<U>
getTaskExecutor
in interface SimpleReactStream<U>
public com.nurkiewicz.asyncretry.RetryExecutor getRetrier()
getRetrier
in interface ConfigurableStream<U,FastFuture<U>>
public boolean isAsync()
isAsync
in interface ConfigurableStream<U,FastFuture<U>>
isAsync
in interface FutureStream<U>
isAsync
in interface SimpleReactStream<U>
public LazyFutureStream<U> withTaskExecutor(java.util.concurrent.Executor e)
withTaskExecutor
in interface ConfigurableStream<U,FastFuture<U>>
withTaskExecutor
in interface LazyFutureStream<U>
withTaskExecutor
in interface LazySimpleReactStream<U>
public LazyFutureStream<U> withRetrier(com.nurkiewicz.asyncretry.RetryExecutor retry)
withRetrier
in interface ConfigurableStream<U,FastFuture<U>>
withRetrier
in interface LazyFutureStream<U>
withRetrier
in interface LazySimpleReactStream<U>
withRetrier
in interface SimpleReactStream<U>
public LazyFutureStream<U> withLastActive(LazyStreamWrapper w)
withLastActive
in interface LazyFutureStream<U>
withLastActive
in interface LazySimpleReactStream<U>
public void cancel()
cancel
in interface FutureStreamAsyncPublisher<U>
cancel
in interface FutureStreamSynchronousPublisher<U>
cancel
in interface FutureStream<U>
cancel
in interface LazyFutureStream<U>