TopicRuntimeProperties Class
- java.
lang. Object - com.
azure. messaging. servicebus. administration. models. TopicRuntimeProperties
- com.
public final class TopicRuntimeProperties
Runtime properties about the topic.
Constructor Summary
Constructor | Description |
---|---|
TopicRuntimeProperties(TopicProperties topicProperties) |
Creates a new instance with runtime properties extracted from the given Topic |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
getAccessedAt()
Gets the last time a message was sent, or the last time there was a receive request to this topic. |
Offset |
getCreatedAt()
Gets the exact time the queue was created. |
String |
getName()
Gets the name of the topic. |
int |
getScheduledMessageCount()
Get the scheduled |
long |
getSizeInBytes()
Gets the size of the topic, in bytes. |
int |
getSubscriptionCount()
Gets the number of subscriptions to the topic. |
Offset |
getUpdatedAt()
Gets the exact time the topic description was updated. |
Methods inherited from java.lang.Object
Constructor Details
TopicRuntimeProperties
public TopicRuntimeProperties(TopicProperties topicProperties)
Creates a new instance with runtime properties extracted from the given TopicDescription.
Parameters:
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:
getCreatedAt
public OffsetDateTime getCreatedAt()
Gets the exact time the queue was created.
Returns:
getName
public String getName()
Gets the name of the topic.
Returns:
getScheduledMessageCount
public int getScheduledMessageCount()
Get the scheduledMessageCount property: Number of scheduled messages.
Returns:
getSizeInBytes
public long getSizeInBytes()
Gets the size of the topic, in bytes.
Returns:
getSubscriptionCount
public int getSubscriptionCount()
Gets the number of subscriptions to the topic.
Returns:
getUpdatedAt
public OffsetDateTime getUpdatedAt()
Gets the exact time the topic description was updated.
Returns:
Applies to
Azure SDK for Java