AMQPConnection::setVhost
AMQPExchange::bind
AMQP
PHP Manual
The AMQPExchange class
Introduction
Represents an AMQP exchange.
Class synopsis
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
]] )
}
Table of Contents
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