Package io.smallrye.mutiny.vertx
Class ReadStreamSubscriber<R,J>
- java.lang.Object
-
- io.smallrye.mutiny.vertx.ReadStreamSubscriber<R,J>
-
- All Implemented Interfaces:
io.vertx.core.streams.ReadStream<J>,io.vertx.core.streams.StreamBase,org.reactivestreams.Subscriber<R>
public class ReadStreamSubscriber<R,J> extends Object implements org.reactivestreams.Subscriber<R>, io.vertx.core.streams.ReadStream<J>
-
-
Field Summary
Fields Modifier and Type Field Description static intBUFFER_SIZE
-
Constructor Summary
Constructors Constructor Description ReadStreamSubscriber(Function<R,J> adapter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)voidonComplete()voidonError(Throwable e)voidonNext(R item)voidonSubscribe(org.reactivestreams.Subscription s)io.vertx.core.streams.ReadStream<J>pause()io.vertx.core.streams.ReadStream<J>resume()
-
-
-
Field Detail
-
BUFFER_SIZE
public static final int BUFFER_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
asReadStream
public static <R,J> io.vertx.core.streams.ReadStream<J> asReadStream(org.reactivestreams.Publisher<R> multi, Function<R,J> adapter)
-
handler
public io.vertx.core.streams.ReadStream<J> handler(io.vertx.core.Handler<J> handler)
- Specified by:
handlerin interfaceio.vertx.core.streams.ReadStream<R>
-
pause
public io.vertx.core.streams.ReadStream<J> pause()
- Specified by:
pausein interfaceio.vertx.core.streams.ReadStream<R>
-
fetch
public io.vertx.core.streams.ReadStream<J> fetch(long amount)
- Specified by:
fetchin interfaceio.vertx.core.streams.ReadStream<R>
-
resume
public io.vertx.core.streams.ReadStream<J> resume()
- Specified by:
resumein interfaceio.vertx.core.streams.ReadStream<R>
-
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription s)
- Specified by:
onSubscribein interfaceorg.reactivestreams.Subscriber<R>
-
endHandler
public io.vertx.core.streams.ReadStream<J> endHandler(io.vertx.core.Handler<Void> handler)
- Specified by:
endHandlerin interfaceio.vertx.core.streams.ReadStream<R>
-
exceptionHandler
public io.vertx.core.streams.ReadStream<J> exceptionHandler(io.vertx.core.Handler<Throwable> handler)
- Specified by:
exceptionHandlerin interfaceio.vertx.core.streams.ReadStream<R>- Specified by:
exceptionHandlerin interfaceio.vertx.core.streams.StreamBase
-
onComplete
public void onComplete()
- Specified by:
onCompletein interfaceorg.reactivestreams.Subscriber<R>
-
onError
public void onError(Throwable e)
- Specified by:
onErrorin interfaceorg.reactivestreams.Subscriber<R>
-
-