public class EagerFutureStreamImpl<U> extends java.lang.Object implements EagerFutureStream<U>
FutureStream.Val<T>
java.util.stream.Stream.Builder<T>
ConfigurableStream.SimpleReactConfigurableStream<U>
softener
Constructor and Description |
---|
EagerFutureStreamImpl(EagerReact eagerReact,
java.util.stream.Stream<java.util.concurrent.CompletableFuture<U>> stream)
Construct a SimpleReact stage - this acts as a fluent SimpleReact builder
|
EagerFutureStreamImpl(EagerReact eagerReact,
java.util.stream.Stream<java.util.concurrent.CompletableFuture<U>> stream,
java.util.List<java.util.concurrent.CompletableFuture> org) |
Modifier and Type | Method and Description |
---|---|
void |
cancelOriginal()
Cancel the original tasks that populated the EagerFuturestream
|
<R,A> R |
collect(java.util.stream.Collector<? super U,A,R> collector) |
BaseSimpleReact |
getPopulator() |
com.nurkiewicz.asyncretry.RetryExecutor |
getRetrier() |
java.util.concurrent.Executor |
getTaskExecutor() |
boolean |
isAsync() |
void |
returnPopulator(BaseSimpleReact service) |
EagerFutureStream<U> |
withAsync(boolean b) |
EagerFutureStream<U> |
withRetrier(com.nurkiewicz.asyncretry.RetryExecutor retry) |
EagerFutureStream<U> |
withTaskExecutor(java.util.concurrent.Executor e) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allOf, allOf, anyOf, async, batch, batchBySize, batchBySize, batchByTime, batchByTime, cancel, capture, cast, chunkSinceLastRead, combineLatest, concat, concat, concat, concat, control, convertToLazyStream, debounce, distinct, doOnEach, duplicate, duplicateFutures, empty, filter, firstOf, fixedDelay, flatMap, fromListCompletableFuture, fromStream, fromStreamOfFutures, intersperse, jitter, limit, limitFutures, limitUntil, limitWhile, map, merge, of, of, of, of, ofIterable, ofType, onClose, onePer, onFail, onFail, parallel, parallel, parallelBuilder, parallelBuilder, parallelCommonBuilder, partition, partitionFutureStream, peek, react, react, retry, reverse, scanLeft, scanRight, self, sequential, sequentialBuilder, sequentialCommonBuilder, shard, shuffle, shuffle, skip, skipFutures, skipUntil, skipUntil, skipWhile, slice, sliceFutures, sorted, sorted, splitAt, splitAtFutures, splitAtFutureStream, splitAtHead, splitAtHeadFutureStream, stream, sync, takeUntil, then, then, thenSync, unordered, withErrorHandler, withLastActive, withLatest, withLazyCollector, withQueueFactory, withSubscription, withWaitStrategy, xPer, zip, zip, zipFutures, zipFutures, zipFuturesWithIndex, zipWithIndex
allMatch, anyMatch, cast, chunkLastReadIterator, close, closeOthers, closeOthers, collect, combineLatest, combineLatest, count, findAny, findFirst, firstOf, flatMapToDouble, flatMapToInt, flatMapToLong, forEach, forEachOrdered, intersperse, isParallel, iterator, lift, lift2, mapToDouble, mapToInt, mapToLong, max, merge, min, noneMatch, ofType, reduce, reduce, reduce, reversedIterator, skipUntil, slice, spliterator, takeUntil, toArray, toArray, withLatest, withLatest
cast, concat, cycle, cycle, duplicate, foldLeft, foldLeft, foldRight, foldRight, generate, generate, generate, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, intersperse, iterate, join, join, join, join, join, join, limit, limitUntil, limitWhile, maxBy, maxBy, minBy, minBy, ofType, partition, reverse, scanLeft, scanRight, seq, seq, seq, seq, seq, shuffle, shuffle, skip, skipUntil, skipWhile, slice, splitAt, splitAtHead, toCollection, toCollection, toList, toList, toMap, toMap, toMap, toSet, toSet, toString, toString, toString, unfold, unzip, unzip, unzip, unzip, zip, zip, zipWithIndex
assureSimpleReactException, bind, doOnEachSync, filterSync, fromStreamCompletableFutureReplace, getOriginalFutures, getSubscription, handleExceptions, join, lastActiveArray, merge, parallelOf, peekSync, streamCompletableFutures, with
block, block, block, block, blockAndExtract, blockAndExtract, first, last
getErrorHandler, getLastActive, getSimpleReact, isEager
getQueueFactory, toQueue, toQueue, toQueue
getQueueFactory, toQueue, toQueue, toQueue
public EagerFutureStreamImpl(EagerReact eagerReact, java.util.stream.Stream<java.util.concurrent.CompletableFuture<U>> stream)
eagerReact
- Management for each stagestream
- Stream that will generate the events that will be reacted to.public EagerFutureStreamImpl(EagerReact eagerReact, java.util.stream.Stream<java.util.concurrent.CompletableFuture<U>> stream, java.util.List<java.util.concurrent.CompletableFuture> org)
public void cancelOriginal()
EagerFutureStream
cancelOriginal
in interface EagerFutureStream<U>
public <R,A> R collect(java.util.stream.Collector<? super U,A,R> collector)
collect
in interface java.util.stream.Stream<U>
public BaseSimpleReact getPopulator()
public void returnPopulator(BaseSimpleReact service)
public EagerFutureStream<U> withAsync(boolean b)
withAsync
in interface ConfigurableStream<U>
withAsync
in interface ConfigurableStream.SimpleReactConfigurableStream<U>
withAsync
in interface EagerFutureStream<U>
public java.util.concurrent.Executor getTaskExecutor()
getTaskExecutor
in interface ConfigurableStream<U>
public com.nurkiewicz.asyncretry.RetryExecutor getRetrier()
getRetrier
in interface ConfigurableStream<U>
public boolean isAsync()
isAsync
in interface ConfigurableStream<U>
public EagerFutureStream<U> withTaskExecutor(java.util.concurrent.Executor e)
withTaskExecutor
in interface ConfigurableStream<U>
withTaskExecutor
in interface ConfigurableStream.SimpleReactConfigurableStream<U>
withTaskExecutor
in interface EagerFutureStream<U>
public EagerFutureStream<U> withRetrier(com.nurkiewicz.asyncretry.RetryExecutor retry)
withRetrier
in interface ConfigurableStream<U>
withRetrier
in interface ConfigurableStream.SimpleReactConfigurableStream<U>
withRetrier
in interface EagerFutureStream<U>