Queue Interface
Implements
public interface Queue
extends IndependentChildResource<ServiceBusManager,SBQueueInner>, Refreshable<Queue>, Updatable<Update>
Type representing Service Bus queue.
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 queue. |
abstract long |
activeMessageCount()
Gets number of active messages in the queue. |
abstract
Queue |
authorizationRules()
Gets entry point to manage authorization rules for the Service Bus queue. |
abstract
Offset |
createdAt()
Gets the exact time the queue was created. |
abstract long |
currentSizeInBytes()
Gets current size of the queue. |
abstract long |
deadLetterMessageCount()
Gets number of messages in the dead-letter queue. |
abstract Duration |
defaultMessageTtlDuration()
Gets the duration after which the message expires. |
abstract long |
deleteOnIdleDurationInMinutes()
Gets the idle duration after which the queue 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 |
isDeadLetteringEnabledForExpiredMessages()
Checks whether this queue has dead letter support when a message expires. |
abstract boolean |
isDuplicateDetectionEnabled()
Checks whether this queue requires duplicate detection. |
abstract boolean |
isExpressEnabled()
Checks whether express entities are enabled. |
abstract boolean |
isPartitioningEnabled()
Checks whether the queue is to be partitioned across multiple message brokers. |
abstract boolean |
isSessionEnabled()
Checks whether the queue supports sessions. |
abstract long |
lockDurationInSeconds()
Gets the duration of peek-lock which is the amount of time that the message is locked for other receivers. |
abstract int |
maxDeliveryCountBeforeDeadLetteringMessage()
Gets the maximum number of a message delivery before marking it as dead-lettered. |
abstract long |
maxSizeInMB()
Gets the maximum size of memory allocated for the queue in megabytes. |
abstract long |
messageCount()
Gets the number of messages in the queue. |
abstract long |
scheduledMessageCount()
Gets number of messages sent to the queue that are yet to be released for consumption |
abstract
Entity |
status()
Gets the current status of the queue. |
abstract long |
transferDeadLetterMessageCount()
Gets number of messages transferred into dead letters. |
abstract long |
transferMessageCount()
Gets number of messages transferred to another queue, topic, or subscription. |
abstract
Offset |
updatedAt()
Gets the exact time the queue 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 queue.
Returns:
activeMessageCount
public abstract long activeMessageCount()
Gets number of active messages in the queue.
Returns:
authorizationRules
public abstract QueueAuthorizationRules authorizationRules()
Gets entry point to manage authorization rules for the Service Bus queue.
Returns:
createdAt
public abstract OffsetDateTime createdAt()
Gets the exact time the queue was created.
Returns:
currentSizeInBytes
public abstract long currentSizeInBytes()
Gets current size of the queue.
Returns:
deadLetterMessageCount
public abstract long deadLetterMessageCount()
Gets number of messages in the dead-letter queue.
Returns:
defaultMessageTtlDuration
public abstract Duration defaultMessageTtlDuration()
Gets the duration after which the message expires.
Returns:
deleteOnIdleDurationInMinutes
public abstract long deleteOnIdleDurationInMinutes()
Gets the idle duration after which the queue 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:
isDeadLetteringEnabledForExpiredMessages
public abstract boolean isDeadLetteringEnabledForExpiredMessages()
Checks whether this queue has dead letter support when a message expires.
Returns:
isDuplicateDetectionEnabled
public abstract boolean isDuplicateDetectionEnabled()
Checks whether this queue requires duplicate detection.
Returns:
isExpressEnabled
public abstract boolean isExpressEnabled()
Checks whether express entities are enabled.
Returns:
isPartitioningEnabled
public abstract boolean isPartitioningEnabled()
Checks whether the queue is to be partitioned across multiple message brokers.
Returns:
isSessionEnabled
public abstract boolean isSessionEnabled()
Checks whether the queue supports sessions.
Returns:
lockDurationInSeconds
public abstract long lockDurationInSeconds()
Gets the duration of peek-lock which is the amount of time that the message is locked for other receivers.
Returns:
maxDeliveryCountBeforeDeadLetteringMessage
public abstract int maxDeliveryCountBeforeDeadLetteringMessage()
Gets the maximum number of a message delivery before marking it as dead-lettered.
Returns:
maxSizeInMB
public abstract long maxSizeInMB()
Gets the maximum size of memory allocated for the queue in megabytes.
Returns:
messageCount
public abstract long messageCount()
Gets the number of messages in the queue.
Returns:
scheduledMessageCount
public abstract long scheduledMessageCount()
Gets number of messages sent to the queue that are yet to be released for consumption
Returns:
status
public abstract EntityStatus status()
Gets the current status of the queue.
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 queue, topic, or subscription.
Returns:
updatedAt
public abstract OffsetDateTime updatedAt()
Gets the exact time the queue was updated.
Returns:
Applies to
Azure SDK for Java