public class EagerFutureStreamImpl<U> extends java.lang.Object implements EagerFutureStream<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
|
Modifier and Type | Method and Description |
---|---|
<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, batchBySizeAndTime, batchByTime, cancel, capture, cast, chunkSinceLastRead, close, combineLatest, concat, concat, concat, control, convertToLazyStream, copy, crossJoin, cycle, debounce, distinct, doOnEach, duplicate, duplicateFutures, eagerFutureStream, eagerFutureStream, eagerFutureStream, eagerFutureStream, eagerFutureStreamFrom, eagerFutureStreamFromIterable, empty, filter, firstOf, fixedDelay, flatMap, flatMapCompletableFuture, flatMapCompletableFutureSync, fromListCompletableFuture, fromStream, fromStreamOfFutures, getLastActive, innerJoin, intersperse, jitter, leftOuterJoin, limit, limitFutures, limitUntil, limitWhile, map, merge, mergeMultiple, of, of, ofThread, ofThread, ofType, onClose, onEmpty, onEmptyGet, onEmptyThrow, onePer, onFail, onFail, parallel, parallel, partition, partitionFutureStream, peek, react, react, retry, reverse, reverseFutures, rightOuterJoin, scanLeft, scanRight, self, sequential, shard, shuffle, shuffle, skip, skipFutures, skipUntil, skipUntil, skipWhile, slice, sliceFutures, sliding, sliding, sorted, sorted, splitAt, splitAtFutures, splitAtFutureStream, splitAtHead, splitAtHeadFutureStream, stream, sync, takeUntil, then, then, thenSync, toQueue, unordered, withErrorHandler, withLastActive, withLatest, withQueueFactory, withSubscription, xPer, zip, zip, zipFutures, zipFutures, zipFuturesWithIndex, zipWithIndex
allMatch, anyMatch, batchBySizeAndTime, batchByTime, cast, chunkLastReadIterator, collect, count, findAny, findFirst, firstValue, flatMapToDouble, flatMapToInt, flatMapToLong, forEach, forEachOrdered, futureOperations, futureOperations, getSubscription, intersperse, isParallel, iterator, lift, lift2, mapToDouble, mapToInt, mapToLong, max, min, noneMatch, ofType, reduce, reduce, reduce, reversedIterator, single, slice, spliterator, toArray, toArray, toConcurrentLazyCollection, toLazyCollection
cast, concat, crossJoin, crossJoin, crossJoin, crossJoin, crossJoin, crossJoin, crossJoin, cycle, distinct, duplicate, foldLeft, foldLeft, foldRight, foldRight, generate, generate, generate, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, intersperse, isEmpty, isNotEmpty, iterate, join, join, join, join, join, join, limit, limitUntil, limitWhile, 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, 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, zip, zip, zipWithIndex
assureSimpleReactException, bind, block, block, convertToEagerStream, copySimpleReactStream, doOnEachSync, filterSync, fromStreamCompletableFutureReplace, getSubscription, handleExceptions, join, lastActiveArray, merge, peekSync, streamCompletableFutures, with
getQueueFactory, getSimpleReact, simpleReactStream, simpleReactStream, simpleReactStream, simpleReactStream, simpleReactStreamFrom, simpleReactStreamFromIterable
block, block, blockAndExtract, blockAndExtract, first, getErrorHandler, last
getErrorHandler, getSimpleReact
addToQueue, getQueueFactory, 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 <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,java.util.concurrent.CompletableFuture<U>>
withAsync
in interface EagerFutureStream<U>
withAsync
in interface EagerSimpleReactStream<U>
public java.util.concurrent.Executor getTaskExecutor()
getTaskExecutor
in interface ConfigurableStream<U,java.util.concurrent.CompletableFuture<U>>
getTaskExecutor
in interface FutureStream<U>
getTaskExecutor
in interface SimpleReactStream<U>
public com.nurkiewicz.asyncretry.RetryExecutor getRetrier()
getRetrier
in interface ConfigurableStream<U,java.util.concurrent.CompletableFuture<U>>
public boolean isAsync()
isAsync
in interface ConfigurableStream<U,java.util.concurrent.CompletableFuture<U>>
isAsync
in interface FutureStream<U>
isAsync
in interface SimpleReactStream<U>
public EagerFutureStream<U> withTaskExecutor(java.util.concurrent.Executor e)
withTaskExecutor
in interface ConfigurableStream<U,java.util.concurrent.CompletableFuture<U>>
withTaskExecutor
in interface EagerFutureStream<U>
withTaskExecutor
in interface EagerSimpleReactStream<U>
public EagerFutureStream<U> withRetrier(com.nurkiewicz.asyncretry.RetryExecutor retry)
withRetrier
in interface ConfigurableStream<U,java.util.concurrent.CompletableFuture<U>>
withRetrier
in interface EagerFutureStream<U>
withRetrier
in interface EagerSimpleReactStream<U>
withRetrier
in interface SimpleReactStream<U>