SBQueueProperties Class

The Queue Properties definition.

Constructor

SBQueueProperties()

Variables

Name Description
count_details
<xref:<xref:"MessageCountDetails">>

Message Count Details.

created_at
str

The exact time the message was created.

updated_at
str

The exact time the message was updated.

accessed_at
str

Last time a message was sent, or the last time there was a receive request to this queue.

size_in_bytes
int

The size of the queue, in bytes.

message_count
int

The number of messages in the queue.

lock_duration
str

ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. The maximum value for LockDuration is 5 minutes; the default value is 1 minute.

max_size_in_megabytes
int

The maximum size of the queue in megabytes, which is the size of memory allocated for the queue. Default is 1024.

max_message_size_in_kilobytes
int

Maximum size (in KB) of the message payload that can be accepted by the queue. This property is only used in Premium today and default is 1024.

requires_duplicate_detection

A value indicating if this queue requires duplicate detection.

requires_session

A value that indicates whether the queue supports the concept of sessions.

default_message_time_to_live
str

ISO 8601 default message timespan to live value. This is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a message itself.

dead_lettering_on_message_expiration

A value that indicates whether this queue has dead letter support when a message expires.

duplicate_detection_history_time_window
str

ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.

max_delivery_count
int

The maximum delivery count. A message is automatically deadlettered after this number of deliveries. default value is 10.

status
Union[str, <xref:"EntityStatus">]

Enumerates the possible values for the status of a messaging entity. Known values are: "Active", "Disabled", "Restoring", "SendDisabled", "ReceiveDisabled", "Creating", "Deleting", "Renaming", and "Unknown".

enable_batched_operations

Value that indicates whether server-side batched operations are enabled.

auto_delete_on_idle
str

ISO 8061 timeSpan idle interval after which the queue is automatically deleted. The minimum duration is 5 minutes.

enable_partitioning

A value that indicates whether the queue is to be partitioned across multiple message brokers.

enable_express

A value that indicates whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage.

forward_to
str

Queue/Topic name to forward the messages.

forward_dead_lettered_messages_to
str

Queue/Topic name to forward the Dead Letter message.

user_metadata
str

Gets and Sets Metadata of User.

Attributes

accessedAt

Last time a message was sent, or the last time there was a receive request to this queue.

accessedAt: str

autoDeleteOnIdle

ISO 8061 timeSpan idle interval after which the queue is automatically deleted. The minimum duration is 5 minutes.

autoDeleteOnIdle: str

countDetails

Message Count Details.

countDetails: MessageCountDetails

createdAt

The exact time the message was created.

createdAt: str

deadLetteringOnMessageExpiration

A value that indicates whether this queue has dead letter support when a message expires.

deadLetteringOnMessageExpiration: bool

defaultMessageTimeToLive

ISO 8601 default message timespan to live value. This is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a message itself.

defaultMessageTimeToLive: str

duplicateDetectionHistoryTimeWindow

ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.

duplicateDetectionHistoryTimeWindow: str

enableBatchedOperations

Value that indicates whether server-side batched operations are enabled.

enableBatchedOperations: bool

enableExpress

A value that indicates whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage.

enableExpress: bool

enablePartitioning

A value that indicates whether the queue is to be partitioned across multiple message brokers.

enablePartitioning: bool

forwardDeadLetteredMessagesTo

Queue/Topic name to forward the Dead Letter message.

forwardDeadLetteredMessagesTo: str

forwardTo

Queue/Topic name to forward the messages.

forwardTo: str

lockDuration

ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. The maximum value for LockDuration is 5 minutes; the default value is 1 minute.

lockDuration: str

maxDeliveryCount

The maximum delivery count. A message is automatically deadlettered after this number of deliveries. default value is 10.

maxDeliveryCount: int

maxMessageSizeInKilobytes

Maximum size (in KB) of the message payload that can be accepted by the queue. This property is only used in Premium today and default is 1024.

maxMessageSizeInKilobytes: int

maxSizeInMegabytes

The maximum size of the queue in megabytes, which is the size of memory allocated for the queue. Default is 1024.

maxSizeInMegabytes: int

messageCount

The number of messages in the queue.

messageCount: int

requiresDuplicateDetection

A value indicating if this queue requires duplicate detection.

requiresDuplicateDetection: bool

requiresSession

A value that indicates whether the queue supports the concept of sessions.

requiresSession: bool

sizeInBytes

The size of the queue, in bytes.

sizeInBytes: int

status

Enumerates the possible values for the status of a messaging entity. Known values are: "Active", "Disabled", "Restoring", "SendDisabled", "ReceiveDisabled", "Creating", "Deleting", "Renaming", and "Unknown".

status: str | EntityStatus

updatedAt

The exact time the message was updated.

updatedAt: str

userMetadata

Gets and Sets Metadata of User.

userMetadata: str