public class ReadStreamSubscriber<R,J> extends Object implements org.reactivestreams.Subscriber<R>, io.vertx.core.streams.ReadStream<J>
| Modifier and Type | Field and Description |
|---|---|
static int |
BUFFER_SIZE |
| Constructor and Description |
|---|
ReadStreamSubscriber(Function<R,J> adapter) |
| Modifier and Type | Method and Description |
|---|---|
static <R,J> io.vertx.core.streams.ReadStream<J> |
asReadStream(org.reactivestreams.Publisher<R> multi,
Function<R,J> adapter) |
io.vertx.core.streams.ReadStream<J> |
endHandler(io.vertx.core.Handler<Void> handler) |
io.vertx.core.streams.ReadStream<J> |
exceptionHandler(io.vertx.core.Handler<Throwable> handler) |
io.vertx.core.streams.ReadStream<J> |
fetch(long amount) |
io.vertx.core.streams.ReadStream<J> |
handler(io.vertx.core.Handler<J> handler) |
void |
onComplete() |
void |
onError(Throwable e) |
void |
onNext(R item) |
void |
onSubscribe(org.reactivestreams.Subscription s) |
io.vertx.core.streams.ReadStream<J> |
pause() |
io.vertx.core.streams.ReadStream<J> |
resume() |
public static final int BUFFER_SIZE
public static <R,J> io.vertx.core.streams.ReadStream<J> asReadStream(org.reactivestreams.Publisher<R> multi,
Function<R,J> adapter)
public io.vertx.core.streams.ReadStream<J> handler(io.vertx.core.Handler<J> handler)
handler in interface io.vertx.core.streams.ReadStream<J>public io.vertx.core.streams.ReadStream<J> pause()
pause in interface io.vertx.core.streams.ReadStream<J>public io.vertx.core.streams.ReadStream<J> fetch(long amount)
fetch in interface io.vertx.core.streams.ReadStream<J>public io.vertx.core.streams.ReadStream<J> resume()
resume in interface io.vertx.core.streams.ReadStream<J>public void onSubscribe(org.reactivestreams.Subscription s)
onSubscribe in interface org.reactivestreams.Subscriber<R>public io.vertx.core.streams.ReadStream<J> endHandler(io.vertx.core.Handler<Void> handler)
endHandler in interface io.vertx.core.streams.ReadStream<J>public io.vertx.core.streams.ReadStream<J> exceptionHandler(io.vertx.core.Handler<Throwable> handler)
exceptionHandler in interface io.vertx.core.streams.ReadStream<J>exceptionHandler in interface io.vertx.core.streams.StreamBasepublic void onComplete()
onComplete in interface org.reactivestreams.Subscriber<R>public void onError(Throwable e)
onError in interface org.reactivestreams.Subscriber<R>Copyright © 2019–2020 SmallRye. All rights reserved.