AMQPExchange::publish
(PECL amqp >= Unknown)
AMQPExchange::publish — Publish a message to an exchange.
Beschreibung
public bool AMQPExchange::publish
( string $message
, string $routing_key
[, int $params = 0
[, array $attributes
]] )
Publish a message to the exchange represented by the AMQPExchange object.
Parameter-Liste
- message
-
The message to publish.
- routing_key
-
The routing key to which to publish.
- params
-
One or more of AMQP_MANDATORY and AMQP_IMMEDIATE.
- attributes
-
Supported indexes key Description Default value Content-type text/plain Content-encoding NULL message_id NULL user_id NULL app_id NULL delivery_mode NULL priority NULL timestamp NULL expiration NULL type NULL reply_to NULL
Rückgabewerte
Gibt bei Erfolg TRUE zurück. Im Fehlerfall wird FALSE zurückgegeben.
Fehler/Exceptions
Throws an AMQPExchangeException on failure.
AMQPExchange::publish
There are no user contributed notes for this page.