public class MultiHelper extends Object
| Constructor and Description |
|---|
MultiHelper() |
| Modifier and Type | Method and Description |
|---|---|
static <T> io.smallrye.mutiny.Multi<T> |
toMulti(io.vertx.core.streams.ReadStream<T> stream)
Adapts a Vert.x
ReadStream to an Mutiny Multi. |
static <T,U> io.smallrye.mutiny.Multi<U> |
toMulti(io.vertx.core.streams.ReadStream<T> stream,
Function<T,U> mapping)
Like
toMulti(ReadStream) but with a mapping function |
static <T> io.vertx.core.streams.ReadStream<T> |
toReadStream(io.smallrye.mutiny.Multi<T> observable)
Adapts an Mutiny
Multi to a Vert.x io.vertx.core.streams.ReadStream. |
public static <T> io.vertx.core.streams.ReadStream<T> toReadStream(io.smallrye.mutiny.Multi<T> observable)
Multi to a Vert.x io.vertx.core.streams.ReadStream. The returned
ReadStream will be subscribed to the Multi.
observable - the observable to adaptpublic static <T,U> io.smallrye.mutiny.Multi<U> toMulti(io.vertx.core.streams.ReadStream<T> stream,
Function<T,U> mapping)
toMulti(ReadStream) but with a mapping functionpublic static <T> io.smallrye.mutiny.Multi<T> toMulti(io.vertx.core.streams.ReadStream<T> stream)
ReadStream to an Mutiny Multi. After
the stream is adapted to a Multi, the original stream handlers should not be used anymore
as they will be used by the Multi adapter.
stream - the stream to adaptCopyright © 2019–2020 SmallRye. All rights reserved.