@groovy.transform.CompileStatic class PacketWritestream extends java.lang.Object
A WriteStream for sending packets to a SocketAddress. The stream is called when the write fails.
Constructor and description |
---|
PacketWritestream
(java.lang.Object delegate) |
Type | Name and description |
---|---|
PacketWritestream |
drainHandler(io.vertx.core.Handler<java.lang.Void> handler) |
void |
end() Ends the stream. |
void |
end(Buffer t) Same as WriteStream.end but writes some data to the stream before ending. |
PacketWritestream |
exceptionHandler(io.vertx.core.Handler<java.lang.Throwable> handler) |
java.lang.Object |
getDelegate() |
PacketWritestream |
setWriteQueueMaxSize(int maxSize) |
PacketWritestream |
write(Buffer data) |
boolean |
writeQueueFull() This will return true if there are more bytes in the write queue than the value set using PacketWritestream.setWriteQueueMaxSize |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Ends the stream.
Once the stream has ended, it cannot be used any more.
Same as WriteStream.end but writes some data to the stream before ending.
This will return true
if there are more bytes in the write queue than the value set using PacketWritestream.setWriteQueueMaxSize