AMQPEnvelope
class AMQPEnvelope extends AMQPBasicProperties (View source)
stub class representing AMQPEnvelope from pecl-amqp
Methods
No description
Get the body of the message.
Get the routing key of the message.
Get the consumer tag of the message.
Get the delivery tag of the message.
Get the exchange name on which the message was published.
Whether this is a redelivery of the message.
Get a specific message header.
Check whether specific message header exists.
Details
__construct(string|null $contentType = null, string|null $contentEncoding = null, array $headers = [], int $deliveryMode = AMQP_DELIVERY_MODE_TRANSIENT, int $priority = 0, string|null $correlationId = null, string|null $replyTo = null, string|null $expiration = null, string|null $messageId = null, int|null $timestamp = null, string|null $type = null, string|null $userId = null, string|null $appId = null, string|null $clusterId = null)
No description
string|null
getContentType()
Get the message content type.
string|null
getContentEncoding()
Get the content encoding of the message.
array
getHeaders()
Get the headers of the message.
int
getDeliveryMode()
Get the delivery mode of the message.
int
getPriority()
Get the priority of the message.
string|null
getCorrelationId()
Get the message correlation id.
string|null
getReplyTo()
Get the reply-to address of the message.
string|null
getExpiration()
Get the expiration of the message.
string|null
getMessageId()
Get the message id of the message.
int|null
getTimestamp()
Get the timestamp of the message.
string|null
getType()
Get the message type.
string|null
getUserId()
Get the message user id.
string|null
getAppId()
Get the application id of the message.
string|null
getClusterId()
Get the cluster id of the message.
string
getBody()
Get the body of the message.
string
getRoutingKey()
Get the routing key of the message.
string|null
getConsumerTag()
Get the consumer tag of the message.
int|null
getDeliveryTag()
Get the delivery tag of the message.
string|null
getExchangeName()
Get the exchange name on which the message was published.
bool
isRedelivery()
Whether this is a redelivery of the message.
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.
mixed
getHeader(string $headerName)
Get a specific message header.
bool
hasHeader(string $headerName)
Check whether specific message header exists.