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