QueueDescription Class
- java.
lang. Object - com.
microsoft. azure. servicebus. management. UnknownPropertiesHolder - com.
microsoft. azure. servicebus. management. QueueDescription
- com.
- com.
public class QueueDescription
extends com.microsoft.azure.servicebus.management.UnknownPropertiesHolder
Represents the metadata description of the queue.
Constructor Summary
Constructor | Description |
---|---|
QueueDescription(String path) |
Initializes a new instance of Queue |
Method Summary
Methods inherited from java.lang.Object
Constructor Details
QueueDescription
public QueueDescription(String path)
Initializes a new instance of QueueDescription with the specified relative path.
Parameters:
- Path of the topic. Max length is 260 chars. Cannot start or end with a slash. Cannot have restricted characters: '@','?','#','*'
Method Details
equals
public boolean equals(Object o)
Overrides:
QueueDescription.equals(Object o)Parameters:
getAuthorizationRules
public List
Returns:
getAutoDeleteOnIdle
public Duration getAutoDeleteOnIdle()
Returns:
getDefaultMessageTimeToLive
public Duration getDefaultMessageTimeToLive()
Time-To-Live is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when getTimeToLive() is not set on a message itself. Messages older than their TimeToLive value will expire and no longer be retained in the message store. Subscribers will be unable to receive expired messages.
Returns:
getDuplicationDetectionHistoryTimeWindow
public Duration getDuplicationDetectionHistoryTimeWindow()
Returns:
getEntityStatus
public EntityStatus getEntityStatus()
Gets the status of the entity. When an entity is disabled, that entity cannot send or receive messages.
Returns:
getForwardDeadLetteredMessagesTo
public String getForwardDeadLetteredMessagesTo()
Returns:
getForwardTo
public String getForwardTo()
Returns:
getLockDuration
public Duration getLockDuration()
The amount of time that the message is locked by a given receiver so that no other receiver receives the same message.
Returns:
getMaxDeliveryCount
public int getMaxDeliveryCount()
The maximum delivery count of a message before it is dead-lettered. The delivery count is increased when a message is received in PEEKLOCK mode and didn't complete the message before the message lock expired.
Returns:
getMaxSizeInMB
public long getMaxSizeInMB()
Returns:
getPath
public String getPath()
Returns:
getUserMetadata
public String getUserMetadata()
Returns:
hashCode
public int hashCode()
Overrides:
QueueDescription.hashCode()isEnableBatchedOperations
public boolean isEnableBatchedOperations()
Returns:
isEnableDeadLetteringOnMessageExpiration
public boolean isEnableDeadLetteringOnMessageExpiration()
Indicates whether this queue has dead letter support when a message expires.
Returns:
isEnablePartitioning
public boolean isEnablePartitioning()
Returns:
isRequiresDuplicateDetection
public boolean isRequiresDuplicateDetection()
If enabled, duplicate messages having same getMessageId() and sent to queue within duration of #getDuplicationDetectionHistoryTimeWindow will be discarded.
Returns:
isRequiresSession
public boolean isRequiresSession()
Returns:
setAuthorizationRules
public void setAuthorizationRules(List
Parameters:
- The AuthorizationRule on the queue to control user access at entity level.
setAutoDeleteOnIdle
public void setAutoDeleteOnIdle(Duration autoDeleteOnIdle)
Parameters:
- The idle interval after which the queue is automatically deleted. The minimum duration is 5 minutes.
setDefaultMessageTimeToLive
public void setDefaultMessageTimeToLive(Duration defaultMessageTimeToLive)
Parameters:
- The default message time to live value. Value cannot be lower than 1 second. See getDefaultMessageTimeToLive()
setDuplicationDetectionHistoryTimeWindow
public void setDuplicationDetectionHistoryTimeWindow(Duration duplicationDetectionHistoryTimeWindow)
Parameters:
- The duration of duplicate detection history that is maintained by the service. Max value is 1 day and minimum is 20 seconds.
setEnableBatchedOperations
public void setEnableBatchedOperations(boolean enableBatchedOperations)
Parameters:
- Indicates whether server-side batched operations are enabled.
setEnableDeadLetteringOnMessageExpiration
public void setEnableDeadLetteringOnMessageExpiration(boolean enableDeadLetteringOnMessageExpiration)
Parameters:
- True if messages should be dead-lettered on expiration. See isEnableDeadLetteringOnMessageExpiration()
setEnablePartitioning
public void setEnablePartitioning(boolean enablePartitioning)
Parameters:
- true if queue is to be partitioned across multiple message brokers.
setEntityStatus
public void setEntityStatus(EntityStatus status)
Parameters:
- the status of the queue (Enabled / Disabled). When an entity is disabled, that entity cannot send or receive messages.
setForwardDeadLetteredMessagesTo
public void setForwardDeadLetteredMessagesTo(String forwardDeadLetteredMessagesTo)
Parameters:
- The path of the recipient entity to which all the dead-lettered messages of this queue are forwarded to. If set, user cannot manually receive dead-lettered messages from this queue. The destination entity must already exist.
setForwardTo
public void setForwardTo(String forwardTo)
Parameters:
- The path of the recipient entity to which all the messages sent to the queue are forwarded to. If set, user cannot manually receive messages from this queue. The destination entity must be an already existing entity.
setLockDuration
public void setLockDuration(Duration lockDuration)
Sets The amount of time that the message is locked by a given receiver so that no other receiver receives the same message.
Parameters:
- The duration of a peek lock. Max value is 5 minutes.
setMaxDeliveryCount
public void setMaxDeliveryCount(int maxDeliveryCount)
The maximum delivery count of a message before it is dead-lettered. The delivery count is increased when a message is received in PEEKLOCK mode and didn't complete the message before the message lock expired.
Parameters:
- Minimum value is 1.
setMaxSizeInMB
public void setMaxSizeInMB(long maxSize)
Parameters:
- Maximum size of the queue in megabytes, which is the size of memory allocated for the queue.
setRequiresDuplicateDetection
public void setRequiresDuplicateDetection(boolean requiresDuplicateDetection)
Parameters:
- True if duplicate detection needs to be enabled. See also - isRequiresDuplicateDetection()
setRequiresSession
public void setRequiresSession(boolean requiresSession)
Parameters:
- True if queue should support sessions.
setUserMetadata
public void setUserMetadata(String userMetadata)
Parameters:
- Custom metdata that user can associate with the description. Cannot be null. Max length is 1024 chars