Class TopicRuntimeProperties
java.lang.Object
com.azure.messaging.servicebus.administration.models.TopicRuntimeProperties
Runtime properties about the topic.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTopicRuntimeProperties(TopicProperties topicProperties) Creates a new instance with runtime properties extracted from the given TopicDescription. -
Method Summary
Modifier and TypeMethodDescriptionGets the last time a message was sent, or the last time there was a receive request to this topic.intGets the total number of correlation filters across all subscriptions of the topic.Gets the exact time the queue was created.getName()Gets the name of the topic.intGet the scheduledMessageCount property: Number of scheduled messages.longGets the size of the topic, in bytes.intGets the total number of SQL filters across all subscriptions of the topic.intGets the number of subscriptions to the topic.Gets the exact time the topic description was updated.
-
Constructor Details
-
TopicRuntimeProperties
Creates a new instance with runtime properties extracted from the given TopicDescription.- Parameters:
topicProperties- Topic description to extract runtime properties from.- Throws:
NullPointerException- iftopicDescriptionis null.
-
-
Method Details
-
getAccessedAt
Gets the last time a message was sent, or the last time there was a receive request to this topic.- Returns:
- The last time a message was sent, or the last time there was a receive request to this topic.
-
getCreatedAt
Gets the exact time the queue was created.- Returns:
- The exact time the queue was created.
-
getName
-
getSizeInBytes
public long getSizeInBytes()Gets the size of the topic, in bytes.- Returns:
- The size of the topic, in bytes.
-
getScheduledMessageCount
public int getScheduledMessageCount()Get the scheduledMessageCount property: Number of scheduled messages.- Returns:
- the scheduledMessageCount value.
-
getSubscriptionCount
public int getSubscriptionCount()Gets the number of subscriptions to the topic.- Returns:
- The number of subscriptions to the topic.
-
getSqlFilterCount
public int getSqlFilterCount()Gets the total number of SQL filters across all subscriptions of the topic.The service supplies this count only from api-version
2024-05onwards, and only in regions that have deployed the topic filter count feature. The value is0when the client targets an earlierServiceBusServiceVersionor the region does not supply it.- Returns:
- The total number of SQL filters across all subscriptions of the topic.
-
getCorrelationFilterCount
public int getCorrelationFilterCount()Gets the total number of correlation filters across all subscriptions of the topic.The service supplies this count only from api-version
2024-05onwards, and only in regions that have deployed the topic filter count feature. The value is0when the client targets an earlierServiceBusServiceVersionor the region does not supply it.- Returns:
- The total number of correlation filters across all subscriptions of the topic.
-
getUpdatedAt
Gets the exact time the topic description was updated.- Returns:
- The exact time the topic description was updated.
-