(PECL amqp >= Unknown)
AMQPExchange::publish — Publish a message to an exchange.
Publish a message to the exchange represented by the AMQPExchange object.
The message to publish.
The routing key to which to publish.
One or more of AMQP_MANDATORY and AMQP_MANDATORY.
| 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 |
Возвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки.
Throws an AMQPExchangeException on failure.