static <T> TransformablePublisher<T> |
Streams.batch(int batchSize,
Publisher<T> publisher,
Action<? super T> disposer) |
Batches and serialised demand.
|
default TransformablePublisher<T> |
TransformablePublisher.batch(int batchSize,
Action<? super T> disposer) |
|
static <T> TransformablePublisher<T> |
Streams.bindExec(Publisher<T> publisher) |
Binds the given publisher to the current Execution .
|
static <T> TransformablePublisher<T> |
Streams.bindExec(Publisher<T> publisher,
Action<? super T> disposer) |
Binds the given publisher to the current Execution .
|
default TransformablePublisher<T> |
TransformablePublisher.bindExec() |
|
default TransformablePublisher<T> |
TransformablePublisher.bindExec(Action<? super T> disposer) |
|
static <T> TransformablePublisher<T> |
Streams.buffer(Publisher<T> publisher) |
Returns a publisher that allows the given publisher to without respecting demand.
|
default TransformablePublisher<T> |
TransformablePublisher.buffer() |
|
static <T> TransformablePublisher<T> |
Streams.concat(Iterable<? extends Publisher<? extends T>> publishers) |
|
static <T> TransformablePublisher<T> |
Streams.concat(Iterable<? extends Publisher<? extends T>> publishers,
Action<? super T> disposer) |
Returns a publisher that aggregates the given publishers into a single stream of elements, without interleaving them.
|
static <T> TransformablePublisher<T> |
Streams.constant(T item) |
Creates a new publisher, that indefinitely streams the given object to all subscribers.
|
static <T> TransformablePublisher<T> |
Streams.empty() |
An empty publisher that immediately completes.
|
static <T> TransformablePublisher<T> |
Streams.fanOut(Publisher<? extends Iterable<? extends T>> publisher) |
Returns a publisher that publishes each element from Collections that are produced from the given input publisher.
|
static <T> TransformablePublisher<T> |
Streams.fanOut(Publisher<? extends Iterable<? extends T>> publisher,
Action<? super T> disposer) |
Returns a publisher that publishes each element from Collections that are produced from the given input publisher.
|
static <T> TransformablePublisher<T> |
Streams.filter(Publisher<T> input,
Predicate<? super T> filter) |
Returns a publisher that filters items from the given input stream by applying the given filter predicate.
|
default TransformablePublisher<T> |
TransformablePublisher.filter(Predicate<? super T> filter) |
|
static <I,O> TransformablePublisher<O> |
Streams.flatMap(Publisher<I> input,
Function<? super I,? extends Promise<? extends O>> function) |
Returns a publisher that publishes items from the given input publisher after transforming each item via the given, promise returning, function.
|
default <O> TransformablePublisher<O> |
TransformablePublisher.flatMap(Function<? super T,? extends Promise<? extends O>> function) |
|
static <T> TransformablePublisher<T> |
Streams.flatten(Publisher<? extends Publisher<T>> publisher) |
Creates a single publisher from a publisher of publishers.
|
static <T> TransformablePublisher<T> |
Streams.flatten(Publisher<? extends Publisher<T>> publisher,
Action<? super T> disposer) |
Creates a single publisher from a publisher of publishers.
|
static <T> TransformablePublisher<T> |
Streams.flatYield(Function<? super YieldRequest,? extends Promise<T>> producer) |
Creates a new publisher, backed by the given asynchronous data producing function.
|
static <T> TransformablePublisher<T> |
Streams.fork(Publisher<T> publisher,
Action<? super ExecSpec> execConfig,
Action<? super T> disposer) |
Consumes the given publisher eagerly in a forked execution, buffering results until ready to be consumed by this execution.
|
default TransformablePublisher<T> |
TransformablePublisher.fork() |
Consumes the given publisher eagerly in a forked execution, buffering results until ready to be consumed by this execution.
|
default TransformablePublisher<T> |
TransformablePublisher.fork(Action<? super ExecSpec> execConfig,
Action<? super T> disposer) |
Consumes the given publisher eagerly in a forked execution, buffering results until ready to be consumed by this execution.
|
static <T> TransformablePublisher<T> |
Streams.gate(Publisher<T> publisher,
Action<? super Runnable> valveReceiver) |
Allows requests from the subscriber of the return publisher to be withheld from the given publisher until an externally defined moment.
|
default TransformablePublisher<T> |
TransformablePublisher.gate(Action<? super Runnable> valveReceiver) |
|
static <I,O> TransformablePublisher<O> |
Streams.map(Publisher<I> input,
Function<? super I,? extends O> function) |
Returns a publisher that publishes items from the given input publisher after transforming each item via the given function.
|
default <O> TransformablePublisher<O> |
TransformablePublisher.map(Function<? super T,? extends O> function) |
|
static <T> TransformablePublisher<T> |
Streams.merge(Publisher<? extends T>... publishers) |
Returns a publisher that merges the given input publishers into a single stream of elements.
|
static <T> TransformablePublisher<T> |
Streams.multicast(Publisher<T> publisher) |
Returns a publisher that will stream events emitted from the given publisher to all of its subscribers.
|
default TransformablePublisher<T> |
TransformablePublisher.multicast() |
|
static <T> TransformablePublisher<T> |
Streams.periodically(ScheduledExecutorService executorService,
Duration duration,
Function<? super Integer,? extends T> producer) |
Executes the given function periodically, publishing the return value to the subscriber.
|
static <T> TransformablePublisher<T> |
Streams.periodically(Registry registry,
Duration duration,
Function<? super Integer,? extends T> producer) |
|
static <T> TransformablePublisher<T> |
Streams.publish(Iterable<T> iterable) |
Converts an iterable to a publishable.
|
static <T> TransformablePublisher<T> |
Streams.publish(Promise<? extends Iterable<T>> promise) |
Converts a Promise for an iterable into a publishable.
|
static <U,D> TransformablePublisher<D> |
Streams.streamMap(Publisher<? extends U> input,
StreamMapper<? super U,D> mapper) |
Allows transforming a stream into an entirely different stream.
|
default <O> TransformablePublisher<O> |
TransformablePublisher.streamMap(StreamMapper<? super T,O> mapper) |
|
static <T> TransformablePublisher<T> |
Streams.take(long count,
Publisher<T> upstreamPublisher) |
Returns a publisher that emits only the first n elements from the given publisher, where n is the
given count.
|
default TransformablePublisher<T> |
TransformablePublisher.take(long count) |
|
static <T> TransformablePublisher<T> |
Streams.takeWhile(Predicate<T> condition,
Publisher<T> upstreamPublisher) |
Returns a publisher that emits elements from the given publisher, while the condition is true.
|
default TransformablePublisher<T> |
TransformablePublisher.takeWhile(Predicate<T> condition) |
|
default <O> TransformablePublisher<O> |
TransformablePublisher.transform(Function<? super TransformablePublisher<? extends T>,? extends Publisher<O>> transformer) |
Convenience method to allow a non Ratpack publisher transform method to be hooked in.
|
static <T> TransformablePublisher<T> |
Streams.transformable(Publisher<T> publisher) |
|
static <T> TransformablePublisher<T> |
Streams.wiretap(Publisher<T> publisher,
Action<? super StreamEvent<T>> listener) |
Allows listening to the events of the given publisher as they flow to subscribers.
|
default TransformablePublisher<T> |
TransformablePublisher.wiretap(Action<? super StreamEvent<T>> listener) |
|
static <T> TransformablePublisher<T> |
Streams.yield(Function<? super YieldRequest,? extends T> producer) |
Creates a new publisher, backed by the given data producing function.
|