public abstract class BaseSimpleReact
extends java.lang.Object
Constructor and Description |
---|
BaseSimpleReact() |
Modifier and Type | Method and Description |
---|---|
abstract <U> SimpleReactStream<U> |
construct(java.util.stream.Stream s,
java.util.List<java.util.concurrent.CompletableFuture> org) |
<U> SimpleReactStream<U> |
fromStream(java.util.stream.Stream<java.util.concurrent.CompletableFuture<U>> stream)
Start a reactive dataflow from a stream of CompletableFutures.
|
protected abstract java.util.concurrent.Executor |
getExecutor() |
protected abstract com.nurkiewicz.asyncretry.RetryExecutor |
getRetrier() |
protected abstract boolean |
isAsync() |
<R> SimpleReactStream<R> |
of(java.util.Collection<R> collection)
Start a reactive flow from a Collection using an Iterator
|
<U> SimpleReactStream<U> |
of(java.util.stream.DoubleStream stream)
Start a reactive dataflow from a stream.
|
<U> SimpleReactStream<U> |
of(java.util.stream.IntStream stream)
Start a reactive dataflow from a stream.
|
<U> SimpleReactStream<U> |
of(java.util.Iterator<U> iterator)
Start a reactive flow from a JDK Iterator
|
<U> SimpleReactStream<U> |
of(java.util.stream.LongStream stream)
Start a reactive dataflow from a stream.
|
<U> SimpleReactStream<U> |
of(java.util.stream.Stream<U> stream)
Start a reactive dataflow from a stream.
|
<U> SimpleReactStream<U> |
of(U... array) |
<U> SimpleReactStream<U> |
ofIterable(java.lang.Iterable<U> iter)
Start a reactive flow from a JDK Iterator
|
SimpleReactStream<java.lang.Integer> |
range(int startInclusive,
int endExclusive) |
<U> SimpleReactStream<U> |
react(java.util.Collection<java.util.function.Supplier<U>> actions)
Start a reactive dataflow with a list of one-off-suppliers
|
<U> SimpleReactStream<U> |
react(java.util.Iterator<java.util.function.Supplier<U>> actions)
Start a reactive dataflow with a list of one-off-suppliers
|
<U> SimpleReactStream<U> |
react(java.util.stream.Stream<java.util.function.Supplier<U>> actions)
Start a reactive dataflow with a list of one-off-suppliers
|
<U> SimpleReactStream<U> |
react(java.util.function.Supplier<U>... actions)
Start a reactive dataflow with an array of one-off-suppliers
|
protected <U> SimpleReactStream<U> |
reactI(java.util.function.Supplier<U>... actions)
This internal method has been left protected, so it can be mocked / stubbed as some of the entry points are final
|
<U> SimpleReactStream<U> |
reactIterable(java.lang.Iterable<java.util.function.Supplier<U>> actions)
Start a reactive dataflow with a list of one-off-suppliers
|
protected abstract java.util.concurrent.Executor getExecutor()
protected abstract com.nurkiewicz.asyncretry.RetryExecutor getRetrier()
protected abstract boolean isAsync()
public abstract <U> SimpleReactStream<U> construct(java.util.stream.Stream s, java.util.List<java.util.concurrent.CompletableFuture> org)
public SimpleReactStream<java.lang.Integer> range(int startInclusive, int endExclusive)
public <U> SimpleReactStream<U> of(java.util.Iterator<U> iterator)
iterator
- SimpleReact will iterate over this iterator concurrently to start the reactive dataflowpublic <R> SimpleReactStream<R> of(java.util.Collection<R> collection)
collection
- - Collection SimpleReact will iterate over at the start of the flowpublic <U> SimpleReactStream<U> ofIterable(java.lang.Iterable<U> iter)
iter
- SimpleReact will iterate over this iterator concurrently to start the reactive dataflowpublic <U> SimpleReactStream<U> fromStream(java.util.stream.Stream<java.util.concurrent.CompletableFuture<U>> stream)
stream
- of CompletableFutures that will be used to drive the reactive dataflowpublic <U> SimpleReactStream<U> of(java.util.stream.Stream<U> stream)
stream
- that will be used to drive the reactive dataflowpublic <U> SimpleReactStream<U> of(java.util.stream.IntStream stream)
stream
- that will be used to drive the reactive dataflowpublic <U> SimpleReactStream<U> of(java.util.stream.DoubleStream stream)
stream
- that will be used to drive the reactive dataflowpublic <U> SimpleReactStream<U> of(java.util.stream.LongStream stream)
stream
- that will be used to drive the reactive dataflowpublic <U> SimpleReactStream<U> of(U... array)
public <U> SimpleReactStream<U> react(java.util.Collection<java.util.function.Supplier<U>> actions)
actions
- List of Suppliers to provide data (and thus events) that
downstream jobs will react toopublic <U> SimpleReactStream<U> react(java.util.stream.Stream<java.util.function.Supplier<U>> actions)
actions
- Stream of Suppliers to provide data (and thus events) that
downstream jobs will react toopublic <U> SimpleReactStream<U> react(java.util.Iterator<java.util.function.Supplier<U>> actions)
actions
- Iterator over Suppliers to provide data (and thus events) that
downstream jobs will react toopublic <U> SimpleReactStream<U> reactIterable(java.lang.Iterable<java.util.function.Supplier<U>> actions)
actions
- Stream of Suppliers to provide data (and thus events) that
downstream jobs will react toopublic <U> SimpleReactStream<U> react(java.util.function.Supplier<U>... actions)
actions
- Array of Suppliers to provide data (and thus events) that
downstream jobs will react tooprotected <U> SimpleReactStream<U> reactI(java.util.function.Supplier<U>... actions)