public interface WriteStream<T> extends ExceptionSupport<T>, DrainSupport<T>
Any class that implements this interface can be used by a Pump
to pump data from a ReadStream
to it.
This interface exposes a fluent api and the type T represents the type of the object that implements the interface to allow method chaining
Modifier and Type | Method and Description |
---|---|
T |
write(Buffer data)
Write some data to the stream.
|
exceptionHandler
drainHandler, setWriteQueueMaxSize, writeQueueFull
T write(Buffer data)
DrainSupport.writeQueueFull()
method before writing. This is done automatically if using a Pump
.