amqpconnection.settimeout(3) php man page | unix.com

Man Page: amqpconnection.settimeout

Operating Environment: php

Section: 3

AMQPCONNECTION.SETTIMEOUT(3)						 1					      AMQPCONNECTION.SETTIMEOUT(3)

AMQPConnection::setTimeout - Set the timeout.

SYNOPSIS
public bool AMQPConnection::setTimeout (float $timeout)
DESCRIPTION
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.
PARAMETERS
o $timeout - The timeout used to connect to the AMQP broker.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
ERRORS
/EXCEPTIONS Throws an AMQPConnectionException if $timeout is longer less than 0.
EXAMPLES
Example #1 AMQPConnection::setTimeout example <?php /* Create a new connection */ $cnn = new AMQPConnection(); // set the timeout $cnn->setTimeout(5672); ?> PHP Documentation Group AMQPCONNECTION.SETTIMEOUT(3)
Related Man Pages
remctl_set_timeout(3) - debian
ftp_get_option(3) - php
gearmanworker(3) - php
snmpgetnext(3) - php
cubrid_get_query_timeout(3) - php
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
Please Welcome Don Cragun as Lead Moderator
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
Please Welcome Nicki Paul to the Moderator Team!