public class FakeStream
extends java.lang.Object
implements io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
Constructor and Description |
---|
FakeStream(io.vertx.core.Vertx vx,
byte[] payload) |
Modifier and Type | Method and Description |
---|---|
FakeStream |
endHandler(io.vertx.core.Handler<java.lang.Void> endHandler) |
FakeStream |
exceptionHandler(io.vertx.core.Handler<java.lang.Throwable> handler) |
io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> |
fetch(long amount) |
FakeStream |
handler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler) |
int |
length() |
FakeStream |
pause() |
FakeStream |
resume() |
public int length()
public FakeStream handler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler)
handler
in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
public FakeStream pause()
pause
in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
public FakeStream resume()
resume
in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
public FakeStream exceptionHandler(io.vertx.core.Handler<java.lang.Throwable> handler)
exceptionHandler
in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
exceptionHandler
in interface io.vertx.core.streams.StreamBase
public FakeStream endHandler(io.vertx.core.Handler<java.lang.Void> endHandler)
endHandler
in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
public io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> fetch(long amount)
fetch
in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
Copyright © 2021. All Rights Reserved.