PHP Class AMQPEnvelope

Afficher le fichier Open project: pdezwart/php-amqp Class Usage Examples

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

public __construct ( )

getBody() public méthode

Get the body of the message.
public getBody ( ) : string
Résultat string The contents of the message body.

getDeliveryTag() public méthode

Get the delivery tag of the message.
public getDeliveryTag ( ) : string
Résultat string The delivery tag of the message.

getExchangeName() public méthode

Get the exchange name on which the message was published.
public getExchangeName ( ) : string
Résultat string The exchange name on which the message was published.

getHeader() public méthode

Get a specific message header.
public getHeader ( string $header_key ) : string | boolean
$header_key string Name of the header to get the value from.
Résultat string | boolean The contents of the specified header or FALSE if not set.

getRoutingKey() public méthode

Get the routing key of the message.
public getRoutingKey ( ) : string
Résultat string The message routing key.

hasHeader() public méthode

Check whether specific message header exists.
public hasHeader ( string $header_key ) : boolean
$header_key string Name of the header to check.
Résultat boolean

isRedelivery() public méthode

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
Résultat boolean TRUE if this is a redelivery, FALSE otherwise.