PHP 클래스 AMQPEnvelope

파일 보기 프로젝트 열기: pdezwart/php-amqp 1 사용 예제들

공개 메소드들

메소드 설명
__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.