你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Topic Interface
Implements
public interface Topic
extends IndependentChildResource<ServiceBusManager,SBTopicInner>, Refreshable<Topic>, Updatable<Update>, HasInnerModel<SBTopicInner>
Type representing Service Bus topic.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
Offset |
accessedAt()
Gets last time a message was sent, or the last time there was a receive request to this topic. |
abstract long |
activeMessageCount()
Gets number of active messages in the topic. |
abstract
Topic |
authorizationRules()
Gets entry point to manage authorization rules for the Service Bus topic. |
abstract
Offset |
createdAt()
Gets the exact time the topic was created. |
abstract long |
currentSizeInBytes()
Gets current size of the topic. |
abstract long |
deadLetterMessageCount()
Gets number of messages in the dead-letter topic. |
abstract Duration |
defaultMessageTtlDuration()
Gets the duration after which the message expires, starting from when the message is sent to topic. |
abstract long |
deleteOnIdleDurationInMinutes()
Gets the idle duration after which the topic is automatically deleted. |
abstract Duration |
duplicateMessageDetectionHistoryDuration()
Gets the duration of the duplicate detection history. |
abstract boolean |
isBatchedOperationsEnabled()
Checks whether server-side batched operations are enabled. |
abstract boolean |
isDuplicateDetectionEnabled()
Checks whether this topic requires duplicate detection. |
abstract boolean |
isExpressEnabled()
Check whether express entities are enabled. |
abstract boolean |
isPartitioningEnabled()
Checks whether the topic is to be partitioned across multiple message brokers. |
abstract long |
maxSizeInMB()
Gets the maximum size of memory allocated for the topic in megabytes. |
abstract long |
scheduledMessageCount()
Gets number of messages sent to the topic that are yet to be released for consumption. |
abstract
Entity |
status()
Gets the current status of the topic. |
abstract int |
subscriptionCount()
Gets number of subscriptions for the topic. |
abstract
Service |
subscriptions()
Gets entry point to manage subscriptions associated with the topic. |
abstract long |
transferDeadLetterMessageCount()
Gets number of messages transferred into dead letters. |
abstract long |
transferMessageCount()
Gets number of messages transferred to another topic, topic, or subscription. |
abstract
Offset |
updatedAt()
Gets the exact time the topic was updated. |
Method Details
accessedAt
public abstract OffsetDateTime accessedAt()
Gets last time a message was sent, or the last time there was a receive request to this topic.
Returns:
activeMessageCount
public abstract long activeMessageCount()
Gets number of active messages in the topic.
Returns:
authorizationRules
public abstract TopicAuthorizationRules authorizationRules()
Gets entry point to manage authorization rules for the Service Bus topic.
Returns:
createdAt
public abstract OffsetDateTime createdAt()
Gets the exact time the topic was created.
Returns:
currentSizeInBytes
public abstract long currentSizeInBytes()
Gets current size of the topic.
Returns:
deadLetterMessageCount
public abstract long deadLetterMessageCount()
Gets number of messages in the dead-letter topic.
Returns:
defaultMessageTtlDuration
public abstract Duration defaultMessageTtlDuration()
Gets the duration after which the message expires, starting from when the message is sent to topic.
Returns:
deleteOnIdleDurationInMinutes
public abstract long deleteOnIdleDurationInMinutes()
Gets the idle duration after which the topic is automatically deleted.
Returns:
duplicateMessageDetectionHistoryDuration
public abstract Duration duplicateMessageDetectionHistoryDuration()
Gets the duration of the duplicate detection history.
Returns:
isBatchedOperationsEnabled
public abstract boolean isBatchedOperationsEnabled()
Checks whether server-side batched operations are enabled.
Returns:
isDuplicateDetectionEnabled
public abstract boolean isDuplicateDetectionEnabled()
Checks whether this topic requires duplicate detection.
Returns:
isExpressEnabled
public abstract boolean isExpressEnabled()
Check whether express entities are enabled.
Returns:
isPartitioningEnabled
public abstract boolean isPartitioningEnabled()
Checks whether the topic is to be partitioned across multiple message brokers.
Returns:
maxSizeInMB
public abstract long maxSizeInMB()
Gets the maximum size of memory allocated for the topic in megabytes.
Returns:
scheduledMessageCount
public abstract long scheduledMessageCount()
Gets number of messages sent to the topic that are yet to be released for consumption.
Returns:
status
public abstract EntityStatus status()
Gets the current status of the topic.
Returns:
subscriptionCount
public abstract int subscriptionCount()
Gets number of subscriptions for the topic.
Returns:
subscriptions
public abstract ServiceBusSubscriptions subscriptions()
Gets entry point to manage subscriptions associated with the topic.
Returns:
transferDeadLetterMessageCount
public abstract long transferDeadLetterMessageCount()
Gets number of messages transferred into dead letters.
Returns:
transferMessageCount
public abstract long transferMessageCount()
Gets number of messages transferred to another topic, topic, or subscription.
Returns:
updatedAt
public abstract OffsetDateTime updatedAt()
Gets the exact time the topic was updated.
Returns: