Topic Interface

public interface Topic extends IndependentChildResource<ServiceBusManager, TopicInner>,Refreshable,Updatable<Topic.Update>,HasInner

Type representing Service Bus topic.

Method Summary

Modifier and Type Method and Description
DateTime accessedAt()
long activeMessageCount()
TopicAuthorizationRules authorizationRules()
DateTime createdAt()
long currentSizeInBytes()
long deadLetterMessageCount()
Period defaultMessageTtlDuration()
long deleteOnIdleDurationInMinutes()
Period duplicateMessageDetectionHistoryDuration()
boolean isBatchedOperationsEnabled()
boolean isDuplicateDetectionEnabled()
boolean isExpressEnabled()
boolean isPartitioningEnabled()
long maxSizeInMB()
long scheduledMessageCount()
EntityStatus status()
int subscriptionCount()
ServiceBusSubscriptions subscriptions()
long transferDeadLetterMessageCount()
long transferMessageCount()
DateTime updatedAt()

Inherited Members

Method Details

accessedAt

public DateTime accessedAt()

Returns:

last time a message was sent, or the last time there was a receive request to this topic

activeMessageCount

public long activeMessageCount()

Returns:

number of active messages in the topic

authorizationRules

public TopicAuthorizationRules authorizationRules()

Returns:

entry point to manage authorization rules for the Service Bus topic

createdAt

public DateTime createdAt()

Returns:

the exact time the topic was created

currentSizeInBytes

public long currentSizeInBytes()

Returns:

current size of the topic, in bytes

deadLetterMessageCount

public long deadLetterMessageCount()

Returns:

number of messages in the dead-letter topic

defaultMessageTtlDuration

public Period defaultMessageTtlDuration()

Returns:

the duration after which the message expires, starting from when the message is sent to topic

deleteOnIdleDurationInMinutes

public long deleteOnIdleDurationInMinutes()

Returns:

the idle duration after which the topic is automatically deleted

duplicateMessageDetectionHistoryDuration

public Period duplicateMessageDetectionHistoryDuration()

Returns:

the duration of the duplicate detection history

isBatchedOperationsEnabled

public boolean isBatchedOperationsEnabled()

Returns:

indicates whether server-side batched operations are enabled

isDuplicateDetectionEnabled

public boolean isDuplicateDetectionEnabled()

Returns:

indicates if this topic requires duplicate detection

isExpressEnabled

public boolean isExpressEnabled()

Returns:

indicates whether express entities are enabled

isPartitioningEnabled

public boolean isPartitioningEnabled()

Returns:

indicates whether the topic is to be partitioned across multiple message brokers

maxSizeInMB

public long maxSizeInMB()

Returns:

the maximum size of memory allocated for the topic in megabytes

scheduledMessageCount

public long scheduledMessageCount()

Returns:

number of messages sent to the topic that are yet to be released for consumption

status

public EntityStatus status()

Returns:

the current status of the topic

subscriptionCount

public int subscriptionCount()

Returns:

number of subscriptions for the topic

subscriptions

public ServiceBusSubscriptions subscriptions()

Returns:

entry point to manage subscriptions associated with the topic

transferDeadLetterMessageCount

public long transferDeadLetterMessageCount()

Returns:

number of messages transferred into dead letters

transferMessageCount

public long transferMessageCount()

Returns:

number of messages transferred to another topic, topic, or subscription

updatedAt

public DateTime updatedAt()

Returns:

the exact time the topic was updated

Applies to