Class TopicRuntimeProperties

java.lang.Object
com.azure.messaging.servicebus.administration.models.TopicRuntimeProperties

public final class TopicRuntimeProperties extends Object
Runtime properties about the topic.
See Also:
  • Constructor Details

    • TopicRuntimeProperties

      public TopicRuntimeProperties(TopicProperties topicProperties)
      Creates a new instance with runtime properties extracted from the given TopicDescription.
      Parameters:
      topicProperties - Topic description to extract runtime properties from.
      Throws:
      NullPointerException - if topicDescription is null.
  • Method Details

    • getAccessedAt

      public OffsetDateTime 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

      public OffsetDateTime getCreatedAt()
      Gets the exact time the queue was created.
      Returns:
      The exact time the queue was created.
    • getName

      public String getName()
      Gets the name of the topic.
      Returns:
      The name of the topic.
    • 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.
    • getUpdatedAt

      public OffsetDateTime getUpdatedAt()
      Gets the exact time the topic description was updated.
      Returns:
      The exact time the topic description was updated.