public class BusWriteStream
extends java.lang.Object
implements io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
Modifier and Type | Field and Description |
---|---|
protected boolean |
queueFull |
protected io.vertx.core.eventbus.Message<?> |
replyEvent |
protected java.lang.String |
streamAddress |
Constructor and Description |
---|
BusWriteStream(io.vertx.core.Vertx vertx,
java.lang.String streamAddress) |
Modifier and Type | Method and Description |
---|---|
io.vertx.core.Handler<io.vertx.core.eventbus.Message<java.lang.Void>> |
busHandler() |
void |
complete() |
BusWriteStream |
drainHandler(io.vertx.core.Handler<java.lang.Void> handler) |
void |
end() |
void |
end(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler) |
BusWriteStream |
exceptionHandler(io.vertx.core.Handler<java.lang.Throwable> handler) |
BusWriteStream |
setWriteQueueMaxSize(int maxSize) |
BusWriteStream |
write(io.vertx.core.buffer.Buffer data) |
io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer> |
write(io.vertx.core.buffer.Buffer data,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler) |
boolean |
writeQueueFull() |
protected java.lang.String streamAddress
protected boolean queueFull
protected io.vertx.core.eventbus.Message<?> replyEvent
public BusWriteStream(io.vertx.core.Vertx vertx, java.lang.String streamAddress)
public void complete()
public BusWriteStream exceptionHandler(io.vertx.core.Handler<java.lang.Throwable> handler)
exceptionHandler
in interface io.vertx.core.streams.StreamBase
exceptionHandler
in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
public BusWriteStream setWriteQueueMaxSize(int maxSize)
setWriteQueueMaxSize
in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
public boolean writeQueueFull()
writeQueueFull
in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
public BusWriteStream drainHandler(io.vertx.core.Handler<java.lang.Void> handler)
drainHandler
in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
public io.vertx.core.Handler<io.vertx.core.eventbus.Message<java.lang.Void>> busHandler()
public BusWriteStream write(io.vertx.core.buffer.Buffer data)
write
in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
public io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer> write(io.vertx.core.buffer.Buffer data, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)
write
in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
public void end()
end
in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
public void end(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)
end
in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
Copyright © 2021. All Rights Reserved.