SubscriptionRuntimeProperties Class
- java.
lang. Object - com.
azure. messaging. servicebus. administration. models. SubscriptionRuntimeProperties
- com.
public class SubscriptionRuntimeProperties
Runtime properties about a subscription.
Constructor Summary
Constructor | Description |
---|---|
SubscriptionRuntimeProperties(SubscriptionProperties subscriptionProperties) |
Creates a new instance with runtime properties extracted from the given Subscription |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
getAccessedAt()
Gets the last time the subscription was accessed. |
int |
getActiveMessageCount()
Get the active |
Offset |
getCreatedAt()
Gets the exact time the subscription was created. |
int |
getDeadLetterMessageCount()
Get the dead |
String |
getSubscriptionName()
Gets the name of the subscription. |
String |
getTopicName()
Gets the name of the topic this subscription is associated with. |
long |
getTotalMessageCount()
Gets the number of messages in the subscription. |
int |
getTransferDeadLetterMessageCount()
Get the transfer |
int |
getTransferMessageCount()
Get the transfer |
Offset |
getUpdatedAt()
Gets the exact time the subscription was updated. |
Methods inherited from java.lang.Object
Constructor Details
SubscriptionRuntimeProperties
public SubscriptionRuntimeProperties(SubscriptionProperties subscriptionProperties)
Creates a new instance with runtime properties extracted from the given SubscriptionDescription.
Parameters:
Method Details
getAccessedAt
public OffsetDateTime getAccessedAt()
Gets the last time the subscription was accessed.
Returns:
getActiveMessageCount
public int getActiveMessageCount()
Get the activeMessageCount property: Number of active messages in the queue, topic, or subscription.
Returns:
getCreatedAt
public OffsetDateTime getCreatedAt()
Gets the exact time the subscription was created.
Returns:
getDeadLetterMessageCount
public int getDeadLetterMessageCount()
Get the deadLetterMessageCount property: Number of messages that are dead lettered.
Returns:
getSubscriptionName
public String getSubscriptionName()
Gets the name of the subscription.
Returns:
getTopicName
public String getTopicName()
Gets the name of the topic this subscription is associated with.
Returns:
getTotalMessageCount
public long getTotalMessageCount()
Gets the number of messages in the subscription.
Returns:
getTransferDeadLetterMessageCount
public int getTransferDeadLetterMessageCount()
Get the transferDeadLetterMessageCount property: Number of messages transferred into dead letters.
Returns:
getTransferMessageCount
public int getTransferMessageCount()
Get the transferMessageCount property: Number of messages transferred to another queue, topic, or subscription.
Returns:
getUpdatedAt
public OffsetDateTime getUpdatedAt()
Gets the exact time the subscription was updated.
Returns: