Class QueueRuntimeProperties
java.lang.Object
com.azure.messaging.servicebus.administration.models.QueueRuntimeProperties
Runtime properties about the queue.
-
Constructor Summary
ConstructorDescriptionQueueRuntimeProperties
(QueueProperties queueProperties) Creates a new instance with runtime properties extracted from the given QueueDescription. -
Method Summary
Modifier and TypeMethodDescriptionGets the last time a message was sent, or the last time there was a receive request to this queue.int
Get the activeMessageCount property: Number of active messages in the queue, topic, or subscription.Gets the exact time the queue was created.int
Get the deadLetterMessageCount property: Number of messages that are dead lettered.getName()
Gets the name of the queue.int
Get the scheduledMessageCount property: Number of scheduled messages.long
Gets the size of the queue, in bytes.long
Gets the number of messages in the queue.int
Get the transferDeadLetterMessageCount property: Number of messages transferred into dead letters.int
Get the transferMessageCount property: Number of messages transferred to another queue, topic, or subscription.Gets the exact time a message was updated in the queue.
-
Constructor Details
-
QueueRuntimeProperties
Creates a new instance with runtime properties extracted from the given QueueDescription.- Parameters:
queueProperties
- Queue description to extract runtime properties from.- Throws:
NullPointerException
- ifqueueDescription
is null.
-
-
Method Details
-
getAccessedAt
Gets the last time a message was sent, or the last time there was a receive request to this queue.- Returns:
- The last time a message was sent, or the last time there was a receive request to this queue.
-
getActiveMessageCount
public int getActiveMessageCount()Get the activeMessageCount property: Number of active messages in the queue, topic, or subscription.- Returns:
- the activeMessageCount value.
-
getCreatedAt
Gets the exact time the queue was created.- Returns:
- The exact time the queue was created.
-
getDeadLetterMessageCount
public int getDeadLetterMessageCount()Get the deadLetterMessageCount property: Number of messages that are dead lettered.- Returns:
- the deadLetterMessageCount value.
-
getTotalMessageCount
public long getTotalMessageCount()Gets the number of messages in the queue.- Returns:
- The number of messages in the queue.
-
getName
Gets the name of the queue.- Returns:
- The name of the queue.
-
getScheduledMessageCount
public int getScheduledMessageCount()Get the scheduledMessageCount property: Number of scheduled messages.- Returns:
- the scheduledMessageCount value.
-
getSizeInBytes
public long getSizeInBytes()Gets the size of the queue, in bytes.- Returns:
- The size of the queue, in bytes.
-
getTransferDeadLetterMessageCount
public int getTransferDeadLetterMessageCount()Get the transferDeadLetterMessageCount property: Number of messages transferred into dead letters.- Returns:
- the transferDeadLetterMessageCount value.
-
getTransferMessageCount
public int getTransferMessageCount()Get the transferMessageCount property: Number of messages transferred to another queue, topic, or subscription.- Returns:
- the transferMessageCount value.
-
getUpdatedAt
Gets the exact time a message was updated in the queue.- Returns:
- The exact time a message was updated in the queue.
-