AMQPConnection::setVhost
AMQPExchange::bind
AMQP
PHP Manual
The AMQPExchange class
Введение
Represents an AMQP exchange.
Обзор классов
AMQPExchange
{
/* Methods */
public
bool
bind
(
string
$queue_name
,
string
$routing_key
)
__construct
(
AMQPConnection
$connection
[,
string
$exchange_name
= ""
] )
public
bool
declare
([
string
$exchange_name
= ""
[,
string
$exchange_type
=
AMQP_EX_TYPE_DIRECT
[,
int
$flags
= 0
]]] )
public
bool
delete
([
string
$exchange_name
= NULL
[,
int
$params
= 0
]] )
public
bool
publish
(
string
$message
,
string
$routing_key
[,
int
$params
= 0
[,
array
$attributes
]] )
}
Содержание
AMQPExchange::bind
— The bind purpose
AMQPExchange::__construct
— Create an instance of AMQPExchange
AMQPExchange::declare
— Declare a new exchange on the broker.
AMQPExchange::delete
— Delete the exchange from the broker.
AMQPExchange::publish
— Publish a message to an exchange.
AMQPConnection::setVhost
AMQPExchange::bind
AMQP
PHP Manual