|
AMQPExchange::publishPublish a message to an exchange. Description
public bool AMQPExchange::publish
( string
$message
, string $routing_key
[, int $flags = AMQP_NOPARAM
[, array $attributes = array()
]] )Publish a message to the exchange represented by the AMQPExchange object. Parameters
Return Values
Returns Errors/ExceptionsThrows an AMQPExchangeException on failure. Throws AMQPChannelException if the channel is not open. Throws AMQPConnectionException if the connection to the broker was lost. |