static <T> Multi<T> |
Multi.concat(Multi<T> firstMulti,
Multi<T> secondMulti) |
Concat streams to one.
|
default Multi<T> |
Multi.distinct() |
Filter out all duplicates.
|
default Multi<T> |
Multi.dropWhile(Predicate<T> predicate) |
Drop the longest prefix of elements from this stream that satisfy the given predicate.
|
static <T> Multi<T> |
Multi.empty() |
Get a Multi instance that completes immediately.
|
static <T> Multi<T> |
Multi.error(Throwable error) |
Create a Multi instance that reports the given exception to its subscriber(s).
|
default Multi<T> |
Multi.filter(Predicate<T> predicate) |
Filter stream items with provided predicate.
|
default Multi<T> |
Multi.flatMap(Function<T,Flow.Publisher<T>> publisherMapper) |
Transform item with supplied function and flatten resulting Flow.Publisher to downstream.
|
default Multi<T> |
Multi.flatMapIterable(Function<T,Iterable<T>> iterableMapper) |
Transform item with supplied function and flatten resulting Iterable to downstream.
|
static <T> Multi<T> |
Multi.from(Iterable<T> iterable) |
Create a Multi instance that publishes the given iterable.
|
static <T> Multi<T> |
Multi.from(Flow.Publisher<T> source) |
Create a Multi instance wrapped around the given publisher.
|
static <T> Multi<T> |
Multi.just(Collection<T> items) |
Create a Multi instance that publishes the given items to a single subscriber.
|
static <T> Multi<T> |
Multi.just(T... items) |
Create a Multi instance that publishes the given items to a single subscriber.
|
default Multi<T> |
Multi.limit(long limit) |
Limit stream to allow only specified number of items to pass.
|
default <U> Multi<U> |
Multi.map(Mapper<T,U> mapper) |
|
default <U> Multi<U> |
Single.mapMany(Mapper<T,Flow.Publisher<U>> mapper) |
Map this Single instance to a publisher using the given Mapper.
|
static <T> Multi<T> |
Multi.never() |
Get a Multi instance that never completes.
|
default Multi<T> |
Subscribable.onComplete(Runnable onTerminate) |
Executes given Runnable when onComplete signal is received.
|
default Multi<T> |
Subscribable.onError(Consumer<Throwable> onErrorConsumer) |
Executes given Runnable when onError signal is received.
|
default Multi<T> |
Subscribable.onErrorResume(Function<Throwable,T> onError) |
Function providing one item to be submitted as onNext in case of onError signal is received.
|
default Multi<T> |
Subscribable.onErrorResumeWith(Function<Throwable,Flow.Publisher<T>> onError) |
Resume stream from supplied publisher if onError signal is intercepted.
|
default Multi<T> |
Subscribable.onTerminate(Runnable onTerminate) |
Executes given Runnable when any of signals onComplete, onCancel or onError is received.
|
default Multi<T> |
Multi.peek(Consumer<T> consumer) |
Invoke provided consumer for every item in stream.
|
default Multi<T> |
Multi.skip(long skip) |
Skip first n items, all the others are emitted.
|
default Multi<T> |
Multi.takeWhile(Predicate<T> predicate) |
Take the longest prefix of elements from this stream that satisfy the given predicate.
|