PHP Класс AMQPEnvelope

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( )
getBody ( ) : string Get the body of the message.
getDeliveryTag ( ) : string Get the delivery tag of the message.
getExchangeName ( ) : string Get the exchange name on which the message was published.
getHeader ( string $header_key ) : string | boolean Get a specific message header.
getRoutingKey ( ) : string Get the routing key of the message.
hasHeader ( string $header_key ) : boolean Check whether specific message header exists.
isRedelivery ( ) : boolean Whether this is a redelivery of the message.

Описание методов

__construct() публичный Метод

public __construct ( )

getBody() публичный Метод

Get the body of the message.
public getBody ( ) : string
Результат string The contents of the message body.

getDeliveryTag() публичный Метод

Get the delivery tag of the message.
public getDeliveryTag ( ) : string
Результат string The delivery tag of the message.

getExchangeName() публичный Метод

Get the exchange name on which the message was published.
public getExchangeName ( ) : string
Результат string The exchange name on which the message was published.

getHeader() публичный Метод

Get a specific message header.
public getHeader ( string $header_key ) : string | boolean
$header_key string Name of the header to get the value from.
Результат string | boolean The contents of the specified header or FALSE if not set.

getRoutingKey() публичный Метод

Get the routing key of the message.
public getRoutingKey ( ) : string
Результат string The message routing key.

hasHeader() публичный Метод

Check whether specific message header exists.
public hasHeader ( string $header_key ) : boolean
$header_key string Name of the header to check.
Результат boolean

isRedelivery() публичный Метод

Whether this is a redelivery of a message. If this message has been delivered and AMQPEnvelope::nack() was called, the message will be put back on the queue to be redelivered, at which point the message will always return TRUE when this method is called.
public isRedelivery ( ) : boolean
Результат boolean TRUE if this is a redelivery, FALSE otherwise.