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

search for in the

AMQPChannel> <AMQPConnection::setTimeout
[edit] Last updated: Thu, 23 May 2013

view this page in

AMQPConnection::setVhost

(PECL amqp >= Unknown)

AMQPConnection::setVhostAMQP 仮想ホストを設定する

説明

public bool AMQPConnection::setVhost ( string $vhost )

AMQP ブローカ上での接続先の仮想ホストを設定します。

パラメータ

host

AMQP ブローカ上で使う仮想ホスト。

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

エラー / 例外

host が 32 文字より長い場合に AMQPConnectionException をスローします。

例1 AMQPConnection::setVhost() の例

<?php

/* 新しい接続を作成します */
$cnn = new AMQPConnection();

// ホスト名を設定します
$cnn->setVhost('myvhost');

?>



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

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