public abstract class BaseSimpleReact extends java.lang.Object implements ReactBuilder
Modifier | Constructor and Description |
---|---|
protected |
BaseSimpleReact() |
protected |
BaseSimpleReact(java.util.concurrent.Executor queueService) |
Modifier and Type | Method and Description |
---|---|
abstract <U> BaseSimpleReactStream<U> |
construct(java.util.stream.Stream s) |
<R> BaseSimpleReactStream<R> |
from(java.util.Collection<R> collection)
Start a reactive flow from a Collection using an Iterator
|
<U> BaseSimpleReactStream<U> |
from(java.util.concurrent.CompletableFuture<U>... cf) |
<U> BaseSimpleReactStream<U> |
from(java.util.concurrent.CompletableFuture<U> cf) |
<U> BaseSimpleReactStream<U> |
from(java.util.stream.DoubleStream stream)
Start a reactive dataflow from a stream.
|
<U> BaseSimpleReactStream<U> |
from(java.util.stream.IntStream stream)
Start a reactive dataflow from a stream.
|
<U> BaseSimpleReactStream<U> |
from(java.util.Iterator<U> iterator)
Start a reactive flow from a JDK Iterator
|
<U> BaseSimpleReactStream<U> |
from(java.util.stream.LongStream stream)
Start a reactive dataflow from a stream.
|
<U> BaseSimpleReactStream<U> |
from(java.util.stream.Stream<U> stream)
Start a reactive dataflow from a stream.
|
<U> BaseSimpleReactStream<U> |
fromIterable(java.lang.Iterable<U> iter)
Start a reactive flow from a JDK Iterator
|
<U> BaseSimpleReactStream<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() |
<U> BaseSimpleReactStream<U> |
of(U... array) |
BaseSimpleReactStream<java.lang.Integer> |
range(int startInclusive,
int endExclusive) |
<U> BaseSimpleReactStream<U> |
react(java.util.Collection<java.util.function.Supplier<U>> actions)
Start a reactive dataflow with a list of one-off-suppliers
|
<U> BaseSimpleReactStream<U> |
react(java.util.Iterator<java.util.function.Supplier<U>> actions)
Start a reactive dataflow with a list of one-off-suppliers
|
<U> BaseSimpleReactStream<U> |
react(java.util.stream.Stream<java.util.function.Supplier<U>> actions)
Start a reactive dataflow with a list of one-off-suppliers
|
<U> BaseSimpleReactStream<U> |
react(java.util.function.Supplier<U>... actions)
Start a reactive dataflow with an array of one-off-suppliers
|
protected <U> BaseSimpleReactStream<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> BaseSimpleReactStream<U> |
reactIterable(java.lang.Iterable<java.util.function.Supplier<U>> actions)
Start a reactive dataflow with a list of one-off-suppliers
|
protected BaseSimpleReact()
protected BaseSimpleReact(java.util.concurrent.Executor queueService)
protected abstract java.util.concurrent.Executor getExecutor()
protected abstract com.nurkiewicz.asyncretry.RetryExecutor getRetrier()
protected abstract boolean isAsync()
public abstract <U> BaseSimpleReactStream<U> construct(java.util.stream.Stream s)
public BaseSimpleReactStream<java.lang.Integer> range(int startInclusive, int endExclusive)
public <U> BaseSimpleReactStream<U> from(java.util.Iterator<U> iterator)
iterator
- SimpleReact will iterate over this iterator concurrently to start the reactive dataflowpublic <R> BaseSimpleReactStream<R> from(java.util.Collection<R> collection)
collection
- - Collection SimpleReact will iterate over at the start of the flowpublic <U> BaseSimpleReactStream<U> fromIterable(java.lang.Iterable<U> iter)
iter
- SimpleReact will iterate over this iterator concurrently to start the reactive dataflowpublic <U> BaseSimpleReactStream<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> BaseSimpleReactStream<U> from(java.util.stream.Stream<U> stream)
stream
- that will be used to drive the reactive dataflowpublic <U> BaseSimpleReactStream<U> from(java.util.stream.IntStream stream)
stream
- that will be used to drive the reactive dataflowpublic <U> BaseSimpleReactStream<U> from(java.util.stream.DoubleStream stream)
stream
- that will be used to drive the reactive dataflowpublic <U> BaseSimpleReactStream<U> from(java.util.stream.LongStream stream)
stream
- that will be used to drive the reactive dataflowpublic <U> BaseSimpleReactStream<U> of(U... array)
public <U> BaseSimpleReactStream<U> from(java.util.concurrent.CompletableFuture<U> cf)
public <U> BaseSimpleReactStream<U> from(java.util.concurrent.CompletableFuture<U>... cf)
public <U> BaseSimpleReactStream<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> BaseSimpleReactStream<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> BaseSimpleReactStream<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> BaseSimpleReactStream<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> BaseSimpleReactStream<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> BaseSimpleReactStream<U> reactI(java.util.function.Supplier<U>... actions)