Skip to content

QueueProps

Properties for defining a Queue.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-amqp-queue

Initializer

using AlibabaCloud.SDK.ROS.CDK.Amqp;
new QueueProps {
    object InstanceId,
    object QueueName,
    object VirtualHost,
    object AutoDeleteState = null,
    object AutoExpireState = null,
    object DeadLetterExchange = null,
    object DeadLetterRoutingKey = null,
    object ExclusiveState = null,
    object MaximumPriority = null,
    object MaxLength = null,
    object MessageTtl = null
};

Properties

Name Type Description
InstanceId object Property instanceId: InstanceId.
QueueName object Property queueName: The name of the queue.
VirtualHost object Property virtualHost: The name of the virtual host.
AutoDeleteState object Property autoDeleteState: Specifies whether the Auto Delete attribute is configured.
AutoExpireState object Property autoExpireState: The validity period after which the queue is automatically deleted.
DeadLetterExchange object Property deadLetterExchange: The dead-letter exchange.
DeadLetterRoutingKey object Property deadLetterRoutingKey: The dead letter routing key.
ExclusiveState object Property exclusiveState: Specifies whether the queue is an exclusive queue.
MaximumPriority object Property maximumPriority: The priority function is not supported.
MaxLength object Property maxLength: The maximum number of messages that can be stored in the queue.
MessageTtl object Property messageTtl: The message TTL of the queue If a message is retained in the Queue longer than the configured message lifetime, the message expires.

InstanceIdRequired

public object InstanceId { get; set; }
  • Type: object

Property instanceId: InstanceId.


QueueNameRequired

public object QueueName { get; set; }
  • Type: object

Property queueName: The name of the queue.


VirtualHostRequired

public object VirtualHost { get; set; }
  • Type: object

Property virtualHost: The name of the virtual host.


AutoDeleteStateOptional

public object AutoDeleteState { get; set; }
  • Type: object

Property autoDeleteState: Specifies whether the Auto Delete attribute is configured.

Valid values: true: The Auto Delete attribute is configured. The queue is automatically deleted after the last subscription from consumers to this queue is canceled. false: The Auto Delete attribute is not configured.


AutoExpireStateOptional

public object AutoExpireState { get; set; }
  • Type: object

Property autoExpireState: The validity period after which the queue is automatically deleted.

If the queue is not accessed within a specified period of time, it is automatically deleted.


DeadLetterExchangeOptional

public object DeadLetterExchange { get; set; }
  • Type: object

Property deadLetterExchange: The dead-letter exchange.

A dead-letter exchange is used to receive rejected messages. If a consumer rejects a message that cannot be retried, this message is routed to a specified dead-letter exchange. Then, the dead-letter exchange routes the message to the queue that is bound to the dead-letter exchange.


DeadLetterRoutingKeyOptional

public object DeadLetterRoutingKey { get; set; }
  • Type: object

Property deadLetterRoutingKey: The dead letter routing key.


ExclusiveStateOptional

public object ExclusiveState { get; set; }
  • Type: object

Property exclusiveState: Specifies whether the queue is an exclusive queue.

Valid values: true: The queue is an exclusive queue. It can be used only for the connection that declares the exclusive queue. After the connection is closed, the exclusive queue is automatically deleted. false: The Auto Delete attribute is not configured.


MaximumPriorityOptional

public object MaximumPriority { get; set; }
  • Type: object

Property maximumPriority: The priority function is not supported.


MaxLengthOptional

public object MaxLength { get; set; }
  • Type: object

Property maxLength: The maximum number of messages that can be stored in the queue.

If this threshold is exceeded, the earliest messages that are routed to the queue are discarded.


MessageTtlOptional

public object MessageTtl { get; set; }
  • Type: object

Property messageTtl: The message TTL of the queue If a message is retained in the Queue longer than the configured message lifetime, the message expires.

The value of message lifetime must be a non-negative integer, up to 1 day. The unit is milliseconds