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

search for in the

AMQPChannel::startTransaction> <AMQPChannel::setPrefetchCount
[edit] Last updated: Fri, 24 May 2013

view this page in

AMQPChannel::setPrefetchSize

(PECL amqp >= Unknown)

AMQPChannel::setPrefetchSizeEstable el tamaño de ventana a precapturar desde el broker

Descripción

public void AMQPChannel::setPrefetchSize ( int $size )

Define el tamaño de ventana en octetos cuando se usa AMQPQueue::consume() o AMQPQueue::get(). Cualquier uso de este método automáticamente definirá como 0 el valor del número de mensajes, lo que significa que se ignorará dicha opción.

Si se usa AMQPQueue::consume() o AMQPQueue::get() con la opción AMQP_AUTOACK, se ignorará tal opción.

Parámetros

size

El tamaño de la ventana a precapturar en octetos.

Errores/Excepciones

Lanza una excepción AMQPConnectionException si se pierde la conexión al broker.

Valores devueltos

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



add a note add a note User Contributed Notes AMQPChannel::setPrefetchSize - [0 notes]
There are no user contributed notes for this page.

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