package |
Default |
---|
__construct()
basicAck( $arg0, $arg1, $arg2) : void
integer
boolean
callable
basicCancel( $arg0, $arg1 = null) : void
see |
\io\vertx\jphp\rabbitmq\RabbitMQClient::basicConsumer
and @see \io\vertx\jphp\rabbitmq\RabbitMQConsumer::cancel instead
This method should be called when you want to cancel consumption from a queue,
started by calling @see \io\vertx\jphp\rabbitmq\RabbitMQClient::basicConsume.
param $consumerTag [string]
this method is deprecated
and @see \io\vertx\jphp\rabbitmq\RabbitMQConsumer::cancel instead
This method should be called when you want to cancel consumption from a queue,
started by calling @see \io\vertx\jphp\rabbitmq\RabbitMQClient::basicConsume.
param $consumerTag [string]
param $resultHandler [callable]
this method is deprecated
|
---|---|
deprecated |
string
callable
basicConsume( $arg0, $arg1, $arg2, $arg3 = null, $arg4 = null) : void
param $queue [string]
param $address [string]
param $resultHandler [callable]
this method is deprecated
basicConsume($queue, $address, $resultHandler)
Use @see \io\vertx\jphp\rabbitmq\RabbitMQClient::basicConsumer instead
Start a non-nolocal, non-exclusive consumer, with a server-generated consumerTag.
param $queue [string]
param $address [string]
param $autoAck [boolean]
param $resultHandler [callable]
this method is deprecated
basicConsume($queue, $address, $autoAck, $resultHandler)
Use @see \io\vertx\jphp\rabbitmq\RabbitMQClient::basicConsumer instead
Start a non-nolocal, non-exclusive consumer, with a server-generated consumerTag and error handler
param $queue [string]
param $address [string]
param $autoAck [boolean]
param $resultHandler [callable]
param $errorHandler [callable]
this method is deprecated
basicConsume($queue, $address, $autoAck, $resultHandler, $errorHandler)
deprecated |
---|
string
string
callable | boolean
callable
callable
basicConsumer( $arg0, $arg1, $arg2 = null) : void
Create a consumer with the given options
.
param $queue [string] the name of a queue param $options [QueueOptions | array] options for queue param $resultHandler [callable] a handler through which you can find out the operation status; if the operation succeeds you can begin to receive messages through an instance of \RabbitMQConsumer basicConsumer($queue, $options, $resultHandler)
string
callable | array | QueueOptions
callable
basicGet( $arg0, $arg1, $arg2) : void
string
boolean
callable
basicNack( $arg0, $arg1, $arg2, $arg3) : void
integer
boolean
boolean
callable
basicPublish( $arg0, $arg1, $arg2, $arg3) : void
string
string
array
callable
basicQos( $arg0, $arg1, $arg2 = null, $arg3 = null) : void
param $prefetchCount [integer] maximum number of messages that the server will deliver, 0 if unlimited param $resultHandler [callable] handler called when operation is done with a result of the operation basicQos($prefetchCount, $resultHandler)
Request a specific prefetchCount "quality of service" settings for this channel.
param $prefetchCount [integer] maximum number of messages that the server will deliver, 0 if unlimited param $global [boolean] true if the settings should be applied to the entire channel rather than each consumer param $resultHandler [callable] handler called when operation is done with a result of the operation basicQos($prefetchCount, $global, $resultHandler)
Request specific "quality of service" settings.
These settings impose limits on the amount of data the server will deliver to consumers before requiring acknowledgements. Thus they provide a means of consumer-initiated flow control.
param $prefetchSize [integer] maximum amount of content (measured in octets) that the server will deliver, 0 if unlimited param $prefetchCount [integer] maximum number of messages that the server will deliver, 0 if unlimited param $global [boolean] true if the settings should be applied to the entire channel rather than each consumer param $resultHandler [callable] handler called when operation is done with a result of the operation basicQos($prefetchSize, $prefetchCount, $global, $resultHandler)
integer
callable | boolean | integer
callable | boolean
callable
confirmSelect( $arg0) : void
callable
create( $arg0, $arg1 = null) : \io\vertx\jphp\rabbitmq\RabbitMQClient
param $vertx [Vertx] the vertx instance create($vertx)
Create and return a client.
param $vertx [Vertx] the vertx instance param $config [RabbitMQOptions | array] the client config create($vertx, $config)
Vertx
RabbitMQOptions | array
\io\vertx\jphp\rabbitmq\RabbitMQClient
the client
exchangeBind( $arg0, $arg1, $arg2, $arg3) : void
string
string
string
callable
exchangeDeclare( $arg0, $arg1, $arg2, $arg3, $arg4, $arg5 = null) : void
param $exchange [string] param $type [string] param $durable [boolean] param $autoDelete [boolean] param $resultHandler [callable] exchangeDeclare($exchange, $type, $durable, $autoDelete, $resultHandler)
Declare an exchange with additional parameters such as dead lettering, an alternate exchange or TTL.
param $exchange [string] param $type [string] param $durable [boolean] param $autoDelete [boolean] param $config [array] param $resultHandler [callable] exchangeDeclare($exchange, $type, $durable, $autoDelete, $config, $resultHandler)
string
string
boolean
boolean
callable | array
callable
exchangeDelete( $arg0, $arg1) : void
string
callable
exchangeUnbind( $arg0, $arg1, $arg2, $arg3) : void
string
string
string
callable
isConnected() : boolean
boolean
true when the connection is open, false otherwise
isOpenChannel() : boolean
boolean
true when the connection is open, false otherwise
queueBind( $arg0, $arg1, $arg2, $arg3) : void
string
string
string
callable
queueDeclare( $arg0, $arg1, $arg2, $arg3, $arg4, $arg5 = null) : void
param $queue [string] param $durable [boolean] param $exclusive [boolean] param $autoDelete [boolean] param $resultHandler [callable] queueDeclare($queue, $durable, $exclusive, $autoDelete, $resultHandler)
Declare a queue with config options
param $queue [string] param $durable [boolean] param $exclusive [boolean] param $autoDelete [boolean] param $config [array] param $resultHandler [callable] queueDeclare($queue, $durable, $exclusive, $autoDelete, $config, $resultHandler)
string
boolean
boolean
boolean
callable | array
callable
queueDeclareAuto( $arg0) : void
callable
queueDelete( $arg0, $arg1) : void
string
callable
queueDeleteIf( $arg0, $arg1, $arg2, $arg3) : void
string
boolean
boolean
callable
start( $arg0) : void
callable
stop( $arg0) : void
callable
waitForConfirms( $arg0, $arg1 = null) : void
This will incur slight performance loss at the expense of higher write consistency. If desired, multiple calls to basicPublish() can be batched before confirming.
param $resultHandler [callable] waitForConfirms($resultHandler)
Wait until all messages published since the last call have been either ack'd or nack'd by the broker; or until timeout elapses. If the timeout expires a TimeoutException is thrown.
param $timeout [integer] param $resultHandler [callable] waitForConfirms($timeout, $resultHandler)
callable | integer
callable