Represents a stream of data that can be written to.
Any class that implements this interface can be used by a @see \io\vertx\jphp\core\streams\Pump to pump data from a ReadStream
to it.
package |
Default |
---|
__construct()
drainHandler( $arg0) : $this
The stream implementation defines when the drain handler, for example it could be when the queue size has been
reduced to maxSize / 2
.
callable
$this
a reference to this, so the API can be used fluently
end( $arg0 = null) : void
Once the stream has ended, it cannot be used any more. end() Same as @see \io\vertx\jphp\core\streams\WriteStream::end but writes some data to the stream before ending. param $t [mixed] end($t)
mixed
exceptionHandler( $arg0) : $this
callable
$this
a reference to this, so the API can be used fluently
setWriteQueueMaxSize( $arg0) : $this
The value is defined by the implementation of the stream, e.g in bytes for a
see |
\io\vertx\jphp\core\net\NetSocket,
the number of @see \io\vertx\jphp\core\eventbus\Message for a \io\vertx\jphp\core\eventbus\MessageProducer,etc... |
---|
integer
$this
a reference to this, so the API can be used fluently
write( $arg0) : $this
mixed
$this
a reference to this, so the API can be used fluently
writeQueueFull() : boolean
boolean
true if write queue is full