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
,Flow.Subscriber<R>
public class ReadStreamSubscriber<R,J>
extends Object
implements Flow.Subscriber<R>, io.vertx.core.streams.ReadStream<J>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <R,
J> io.vertx.core.streams.ReadStream<J> asReadStream
(Flow.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>
void
void
void
void
io.vertx.core.streams.ReadStream<J>
pause()
io.vertx.core.streams.ReadStream<J>
resume()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vertx.core.streams.ReadStream
collect, pipe, pipeTo, pipeTo
-
Field Details
-
BUFFER_SIZE
public static final int BUFFER_SIZE- See Also:
-
-
Constructor Details
-
ReadStreamSubscriber
-
-
Method Details
-
asReadStream
public static <R,J> io.vertx.core.streams.ReadStream<J> asReadStream(Flow.Publisher<R> multi, Function<R, J> adapter) -
handler
- Specified by:
handler
in interfaceio.vertx.core.streams.ReadStream<R>
-
pause
- Specified by:
pause
in interfaceio.vertx.core.streams.ReadStream<R>
-
fetch
- Specified by:
fetch
in interfaceio.vertx.core.streams.ReadStream<R>
-
resume
- Specified by:
resume
in interfaceio.vertx.core.streams.ReadStream<R>
-
onSubscribe
- Specified by:
onSubscribe
in interfaceFlow.Subscriber<R>
-
endHandler
- Specified by:
endHandler
in interfaceio.vertx.core.streams.ReadStream<R>
-
exceptionHandler
public io.vertx.core.streams.ReadStream<J> exceptionHandler(io.vertx.core.Handler<Throwable> handler) - Specified by:
exceptionHandler
in interfaceio.vertx.core.streams.ReadStream<R>
- Specified by:
exceptionHandler
in interfaceio.vertx.core.streams.StreamBase
-
onComplete
public void onComplete()- Specified by:
onComplete
in interfaceFlow.Subscriber<R>
-
onError
- Specified by:
onError
in interfaceFlow.Subscriber<R>
-
onNext
- Specified by:
onNext
in interfaceFlow.Subscriber<R>
-