例
AMQPConnection::connect
AMQP
PHP Manual
AMQPConnection クラス
導入
AMQP ブローカへの接続をあらわします。
クラス概要
AMQPConnection
{
/* メソッド */
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
)
}
目次
AMQPConnection::connect
? Establish a connection with the AMQP broker.
AMQPConnection::__construct
? AMQPConnection のインスタンスを作成する
AMQPConnection::disconnect
? Closes the connection with the AMQP broker.
AMQPConnection::isConnected
? AMQPConnection オブジェクトがブローカと接続しているかどうかを調べる
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
例
AMQPConnection::connect
AMQP
PHP Manual