public interface VertxPublisher
Expose Vert.x streams as Reactive Streams compliant publishers.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <T> Flow.Publisher<T>fromFuture(Supplier<io.vertx.core.Future<? extends io.vertx.core.streams.ReadStream<T>>> futureStreamSupplier) Create a publisher from a Vert.x future stream supplier.static <T> Flow.Publisher<T>fromSupplier(Supplier<io.vertx.core.streams.ReadStream<T>> streamSupplier) Create a publisher from a Vert.x stream supplier.
-
Method Details
-
fromSupplier
static <T> Flow.Publisher<T> fromSupplier(Supplier<io.vertx.core.streams.ReadStream<T>> streamSupplier) Create a publisher from a Vert.x stream supplier. The supplier is called for each new publisher subscription.- Type Parameters:
T- the elements type- Parameters:
streamSupplier- theReadStreamsupplier, cannot benull, cannot returnnull, must not throw an exception- Returns:
- the new
Flow.Publisher
-
fromFuture
static <T> Flow.Publisher<T> fromFuture(Supplier<io.vertx.core.Future<? extends io.vertx.core.streams.ReadStream<T>>> futureStreamSupplier) Create a publisher from a Vert.x future stream supplier. The supplier is called for each new publisher subscription.- Type Parameters:
T- the elements type- Parameters:
futureStreamSupplier- theFutureReadStreamsupplier, cannot benull, cannot returnnull, must not throw an exception- Returns:
- the new
Flow.Publisher
-