Package net.bluemind.core.rest.vertx
Class VertxStreamConsumer
java.lang.Object
net.bluemind.core.rest.vertx.VertxStreamConsumer
- All Implemented Interfaces:
io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
,io.vertx.core.streams.StreamBase
,Stream
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionendHandler
(io.vertx.core.Handler<Void> endHandler) exceptionHandler
(io.vertx.core.Handler<Throwable> handler) void
io.vertx.core.streams.ReadStream
<io.vertx.core.buffer.Buffer> fetch
(long amount) handler
(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler) pause()
void
pushData
(io.vertx.core.buffer.Buffer data) void
pushEnd()
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
pipe, pipeTo, pipeTo
-
Constructor Details
-
VertxStreamConsumer
-
-
Method Details
-
handler
- Specified by:
handler
in interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
-
pause
- Specified by:
pause
in interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
-
resume
- Specified by:
resume
in interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
-
exceptionHandler
- Specified by:
exceptionHandler
in interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
- Specified by:
exceptionHandler
in interfaceio.vertx.core.streams.StreamBase
-
endHandler
- Specified by:
endHandler
in interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
-
pushData
public void pushData(io.vertx.core.buffer.Buffer data) -
pushEnd
public void pushEnd() -
fail
-
fetch
public io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> fetch(long amount) - Specified by:
fetch
in interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
-