A stream of messages from a rabbitmq queue.
package |
Default |
---|
__construct()
cancel( $arg0 = null) : void
The operation is asynchronous. When consumption will be stopped, you can by notified via @see \io\vertx\jphp\rabbitmq\RabbitMQConsumer::endHandler cancel() Stop message consumption from a queue.
The operation is asynchronous. When consumption will be stopped, you can by notified via @see \io\vertx\jphp\rabbitmq\RabbitMQConsumer::endHandler param $cancelResult [callable] contains information about operation status: success/fail. cancel($cancelResult)
callable
consumerTag() : string
string
a consumer tag
endHandler( $arg0) : $this
callable
$this
a reference to this, so the API can be used fluently
exceptionHandler( $arg0) : $this
callable
$this
a reference to this, so the API can be used fluently
fetch( $arg0) : $this
integer
$this
a reference to this, so the API can be used fluently
handler( $arg0) : $this
callable
$this
a reference to this, so the API can be used fluently
isPaused() : boolean
boolean
is the stream paused?
pause() : $this
The messages will continue to arrive, but they will be stored in a internal queue. If the queue size would exceed the limit provided by , then incoming messages will be discarded.
$this
a reference to this, so the API can be used fluently
resume() : $this
$this
a reference to this, so the API can be used fluently