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

search for in the

AMQPConnection::setVhost> <AMQPConnection::setPort
[edit] Last updated: Fri, 17 May 2013

view this page in

AMQPConnection::setTimeout

(Não há informação de versão disponível, talvez apenas no SVN)

AMQPConnection::setTimeoutSet the timeout.

Descrição

public bool AMQPConnection::setTimeout ( float $timeout )

Set the amount of time, in seconds, after which this instance of an AMQPConnection object times out a request to the broker. Setting this value will override the default value specified by the amqp.timeout INI setting. To specify a timeout of 500ms, simply pass in 0.5.

Parâmetros

timeout

The timeout used to connect to the AMQP broker.

Valor Retornado

Retorna TRUE em caso de sucesso ou FALSE em caso de falha.

Erros

Throws an AMQPConnectionException if timeout is longer less than 0.

Exemplos

Exemplo #1 AMQPConnection::setTimeout() example

<?php

/* Create a new connection */
$cnn = new AMQPConnection();

// set the timeout
$cnn->setTimeout(5672);

?>



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

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