public class SubscriptionRuntimeProperties extends Object
Constructor and Description |
---|
SubscriptionRuntimeProperties(SubscriptionProperties subscriptionProperties)
Creates a new instance with runtime properties extracted from the given SubscriptionDescription.
|
Modifier and Type | Method and Description |
---|---|
OffsetDateTime |
getAccessedAt()
Gets the last time the subscription was accessed.
|
int |
getActiveMessageCount()
Get the activeMessageCount property: Number of active messages in the queue, topic, or subscription.
|
OffsetDateTime |
getCreatedAt()
Gets the exact time the subscription was created.
|
int |
getDeadLetterMessageCount()
Get the deadLetterMessageCount property: Number of messages that are dead lettered.
|
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 transferDeadLetterMessageCount property: Number of messages transferred into dead letters.
|
int |
getTransferMessageCount()
Get the transferMessageCount property: Number of messages transferred to another queue, topic, or subscription.
|
OffsetDateTime |
getUpdatedAt()
Gets the exact time the subscription was updated.
|
public SubscriptionRuntimeProperties(SubscriptionProperties subscriptionProperties)
subscriptionProperties
- Subscription description to extract runtime properties from.NullPointerException
- if subscriptionDescription
is null.public OffsetDateTime getAccessedAt()
public int getActiveMessageCount()
public OffsetDateTime getCreatedAt()
public int getDeadLetterMessageCount()
public long getTotalMessageCount()
public int getTransferDeadLetterMessageCount()
public int getTransferMessageCount()
public String getSubscriptionName()
public String getTopicName()
public OffsetDateTime getUpdatedAt()
Copyright © 2021 Microsoft Corporation. All rights reserved.