Examples
AMQPConnection::connect
AMQP
PHP Manual
The AMQPConnection class
Introduction
Represents a connection to an AMQP broker.
Class synopsis
AMQPConnection
{
/* Methods */
public
bool
connect
(
void
)
__construct
([
array
$credentials
= array()
] )
public
bool
disconnect
(
void
)
public
bool
isConnected
(
void
)
public
bool
reconnect
(
void
)
public
bool
setHost
(
string
$host
)
public
bool
setLogin
(
string
$login
)
public
bool
setPassword
(
string
$password
)
public
bool
setPort
(
int
$port
)
public
bool
setVhost
(
string
$vhost
)
}
Table of Contents
AMQPConnection::connect
— Establish a connection with the AMQP broker.
AMQPConnection::__construct
— Create an instance of AMQPConnection
AMQPConnection::disconnect
— Closes the connection with the AMQP broker.
AMQPConnection::isConnected
— Determine if the AMQPConnection object is connected to the broker.
AMQPConnection::reconnect
— Closes any open connection and creates a new connection with the AMQP broker.
AMQPConnection::setHost
— Set the amqp host.
AMQPConnection::setLogin
— Set the login.
AMQPConnection::setPassword
— Set the password.
AMQPConnection::setPort
— Set the port.
AMQPConnection::setVhost
— Set the amqp virtual host
Examples
AMQPConnection::connect
AMQP
PHP Manual