Represents a stream of data that can be written to.
Any class that implements this interface can be used by a Pump
to pump data from a ReadStream
to it.
Anything
Object
WriteStream
Basic
Identifiable
Object
Anything
no subtypes hierarchy
Initializer |
WriteStream(WriteStream<out Object> delegate) |
Attributes | |
delegate | shared WriteStream<out Object> delegate |
Inherited Attributes |
Attributes inherited from: Object hash , string |
Methods | |
drainHandler | shared void drainHandler(void onDrain()) Set a drain handler on the stream. If the write queue is full, then the handler will be called when the write
queue has been reduced to maxSize / 2. See |
exceptionHandler | shared void exceptionHandler(void onException(Throwable t)) Set an exception handler. |
setWriteQueueMaxSize | shared void setWriteQueueMaxSize(Integer maxSize) Set the maximum size of the write queue to |
write | shared void write(Buffer data) Write some data to the stream. The data is put on an internal write queue, and the write actually happens
asynchronously. To avoid running out of memory by putting too much on the write queue,
check the |
writeQueueFull | shared void writeQueueFull() This will return |
Inherited Methods |
Methods inherited from: Object equals |