public class LazyFutureStreamImpl<U> extends java.lang.Object implements LazyFutureStream<U>
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
actOnFutures, allMatch, anyM, anyMatch, append, appendStream, async, batch, batchBySize, batchBySize, batchBySizeAndTime, batchBySizeAndTime, batchByTime, batchByTime, batchUntil, batchUntil, batchWhile, batchWhile, boundedWaitFree, capture, cast, chunkLastReadIterator, chunkSinceLastRead, closeAll, collect, collectIterable, collectStream, concat, concat, concat, control, convertToSimpleReact, copy, count, crossJoin, cycle, cycle, cycle, cycle, cycleUntil, cycleWhile, debounce, deleteBetween, distinct, distinct, duplicate, duplicateFutureStream, duplicateSequence, empty, endsWith, endsWith, filter, findAny, findFirst, firstValue, fixedDelay, flatMap, flatMapAnyM, flatMapBufferedReader, flatMapCharSequence, flatMapCollection, flatMapCompletableFuture, flatMapFile, flatMapOptional, flatMapStream, flatMapToCompletableFutureSync, flatMapToDouble, flatMapToInt, flatMapToLong, flatMapURL, flatten, foldLeft, foldLeft, foldLeftMapToType, foldRight, foldRight, foldRightMapToType, forEach, forEachOrdered, freeThread, freeThread, fromStream, fromStreamOfFutures, futureOperations, futureOperations, generate, generate, generate, getSimpleReact, getSubscription, groupBy, grouped, headAndTail, headAndTailOptional, hotStream, hotStream, innerJoin, insertAt, insertStreamAt, intersperse, isParallel, iterate, iterator, jitter, join, join, join, lazyFutureStream, lazyFutureStream, lazyFutureStream, lazyFutureStream, lazyFutureStreamFrom, lazyFutureStreamFromIterable, leftOuterJoin, limit, limit, limitLast, limitUntil, limitWhile, map, mapReduce, mapReduce, mapToDouble, mapToInt, mapToLong, max, maxActive, maxBy, mergeLatest, min, minBy, noneMatch, of, of, ofType, onClose, onEmpty, onEmptyGet, onEmptyThrow, onePer, onFail, onFail, parallel, parallel, partition, partitionFutureStream, partitionSequence, peek, peekSync, prepend, prependStream, quadruplicate, react, react, recover, recover, reduce, reduce, reduce, reduce, reduce, reduce, retry, reverse, rightOuterJoin, scanLeft, scanLeft, scanRight, scanRight, self, sequential, shard, shuffle, shuffle, skip, skip, skipLast, skipUntil, skipWhile, slice, sliding, sliding, sorted, sorted, sorted, splitAt, splitBy, spliterator, splitSequenceAtHead, startsWith, startsWith, stream, subscribe, switchOnNextValue, sync, then, then, thenSync, toArray, toArray, toCollection, toCompletableFuture, toConcurrentLazyCollection, toConcurrentLazyStreamable, toLazyCollection, toList, toOptional, toQueue, toSet, toStream, toStreamable, triplicate, unboundedWaitFree, unordered, unwrap, windowBySizeAndTime, windowByTime, windowStatefullyWhile, windowUntil, windowWhile, withLazyCollector, withParallelReduction, withQueueFactory, withSubscription, xMatch, xPer, zip, zip, zip3, zip4, zipAnyM, zipSequence, zipStream, zipStream, zipWithIndex
assureSimpleReactException, copySimpleReactStream, doOnEach, doOnEachSync, filterSync, flatMapToCompletableFuture, getLastActive, handleExceptions, streamCompletableFutures, withErrorHandler
getErrorHandler
getQueueFactory, simpleReactStream, simpleReactStream, simpleReactStream, simpleReactStream, simpleReactStreamFrom, simpleReactStreamFromIterable
block, block, blockAndExtract, blockAndExtract, first, getErrorHandler, last
getErrorHandler, getLastActive, getLazyCollector, getMaxActive, getParallelReduction, run, run, runContinuation, runOn, runOnCurrent, runThread
elapsed, elementAt, fromDoubleStream, fromIntStream, fromIterable, fromList, fromLongStream, fromStream, get, onEmptySwitch, range, reversedListOf, reversedOf, single, subscriber, timestamp, unzip, unzip3, unzip4
cast, concat, crossJoin, crossJoin, crossJoin, crossJoin, crossJoin, crossJoin, crossJoin, cycle, duplicate, foldLeft, foldLeft, foldRight, foldRight, groupBy, groupBy, groupBy, groupBy, groupBy, intersperse, isEmpty, isNotEmpty, join, join, join, join, join, limit, limitUntil, limitWhile, maxBy, minBy, ofType, partition, reverse, scanLeft, scanRight, seq, seq, seq, seq, seq, seq, seq, seq, seq, seq, seq, shuffle, shuffle, skip, skipUntil, skipWhile, slice, splitAt, splitAt, splitAtHead, splitAtHead, toCollection, toList, toList, toMap, toMap, toMap, toSet, toSet, toString, toString, toString, unfold, unzip, unzip, unzip, unzip, zip, zip, zip, zip, zip, zip, zip, zip, zip, zip, zip, zip, zip, zip, zipWithIndex
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 BaseSimpleReactStream<U>
getTaskExecutor
in interface ConfigurableStream<U,FastFuture<U>>
public com.nurkiewicz.asyncretry.RetryExecutor getRetrier()
getRetrier
in interface ConfigurableStream<U,FastFuture<U>>
public boolean isAsync()
isAsync
in interface BaseSimpleReactStream<U>
isAsync
in interface ConfigurableStream<U,FastFuture<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 BaseSimpleReactStream<U>
withRetrier
in interface ConfigurableStream<U,FastFuture<U>>
withRetrier
in interface LazyFutureStream<U>
withRetrier
in interface LazySimpleReactStream<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>