downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Cola AMQP> <AMQPExchange::delete
Last updated: Fri, 20 May 2011

view this page in

AMQPExchange::publish

(PECL amqp >= Unknown)

AMQPExchange::publishPublica un mensaje a un intercambio

Descripción

public bool AMQPExchange::publish ( string $message , string $routing_key [, int $params = 0 [, array $attributes ]] )

Publica un mensaje a el intercambio representado por el objeto de AMQPExchange.

Parámetros

message

El mensaje a publicar.

routing_key

La clave de enrutamiento la cual se publica.

params

Uno o más AMQP_MANDATORY y AMQP_MANDATORY.

Indices soportados
Clave Descripción Valor por omisión
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

Valores devueltos

Devuelve TRUE en caso de éxito o FALSE en caso de error.

Errores/Excepciones

Lanza un AMQPExchangeException al fallar.



add a note add a note User Contributed Notes AMQPExchange::publish
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites