QueueProperties Class
- java.
lang. Object - com.
azure. messaging. servicebus. administration. models. QueueProperties
- com.
public final class QueueProperties
Properties on a queue.
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Authorization |
getAuthorizationRules()
Get the authorization |
Duration |
getAutoDeleteOnIdle()
Get the auto |
Duration |
getDefaultMessageTimeToLive()
Get the default |
Duration |
getDuplicateDetectionHistoryTimeWindow()
Get the duplicate |
String |
getForwardDeadLetteredMessagesTo()
Get the forward |
String |
getForwardTo()
Get the forward |
Duration |
getLockDuration()
Get the lock |
int |
getMaxDeliveryCount()
Get the max |
long |
getMaxMessageSizeInKilobytes()
Get the max |
long |
getMaxSizeInMegabytes()
Gets the maximum size of the queue in megabytes, which is the size of memory allocated for the queue. |
String |
getName()
Gets the name of the queue. |
Entity |
getStatus()
Get the status property: Status of a Service Bus resource. |
String |
getUserMetadata()
Get the user |
boolean |
isBatchedOperationsEnabled()
Get the enable |
boolean |
isDeadLetteringOnMessageExpiration()
Get the dead |
boolean |
isDuplicateDetectionRequired()
Get the requires |
boolean |
isPartitioningEnabled()
Get the enable |
boolean |
isSessionRequired()
Get the requires |
Queue |
setAutoDeleteOnIdle(Duration autoDeleteOnIdle)
Set the auto |
Queue |
setBatchedOperationsEnabled(boolean enableBatchedOperations)
Set the enable |
Queue |
setDeadLetteringOnMessageExpiration(boolean deadLetteringOnMessageExpiration)
Set the dead |
Queue |
setDefaultMessageTimeToLive(Duration defaultMessageTimeToLive)
Set the default |
Queue |
setDuplicateDetectionHistoryTimeWindow(Duration duplicateDetectionHistoryTimeWindow)
Set the duplicate |
Queue |
setForwardDeadLetteredMessagesTo(String forwardDeadLetteredMessagesTo)
Set the forward |
Queue |
setForwardTo(String forwardTo)
Set the forward |
Queue |
setLockDuration(Duration lockDuration)
Set the lock |
Queue |
setMaxDeliveryCount(Integer maxDeliveryCount)
Sets the maximum delivery count. |
Queue |
setMaxMessageSizeInKilobytes(long maxMessageSizeInKilobytes)
Set the max |
Queue |
setMaxSizeInMegabytes(Integer maxSizeInMegabytes)
Set the max |
Queue |
setStatus(EntityStatus status)
Set the status property: Status of a Service Bus resource. |
Queue |
setUserMetadata(String userMetadata)
Set the user |
Methods inherited from java.lang.Object
Method Details
getAuthorizationRules
public List
Get the authorizationRules property: Authorization rules for resource.
Returns:
getAutoDeleteOnIdle
public Duration getAutoDeleteOnIdle()
Get the autoDeleteOnIdle property: ISO 8601 timeSpan idle interval after which the queue is automatically deleted. The minimum duration is 5 minutes.
Returns:
getDefaultMessageTimeToLive
public Duration getDefaultMessageTimeToLive()
Get the defaultMessageTimeToLive property: ISO 8601 default message timespan to live value. This 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 TimeToLive is not set on a message itself.
Returns:
getDuplicateDetectionHistoryTimeWindow
public Duration getDuplicateDetectionHistoryTimeWindow()
Get the duplicateDetectionHistoryTimeWindow property: ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.
Returns:
getForwardDeadLetteredMessagesTo
public String getForwardDeadLetteredMessagesTo()
Get the forwardDeadLetteredMessagesTo property: The name of the recipient entity to which all the dead-lettered messages of this queue are forwarded to.
Returns:
getForwardTo
public String getForwardTo()
Get the forwardTo property: The name of the recipient entity to which all the messages sent to the queue are forwarded to.
Returns:
getLockDuration
public Duration getLockDuration()
Get the lockDuration property: ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. The maximum value for LockDuration is 5 minutes; the default value is 1 minute.
Returns:
getMaxDeliveryCount
public int getMaxDeliveryCount()
Get the maxDeliveryCount property: The maximum delivery count. A message is automatically dead-lettered after this number of deliveries. Default value is 10.
Returns:
getMaxMessageSizeInKilobytes
public long getMaxMessageSizeInKilobytes()
Get the maxMessageSizeInKilobytes property: The maximum size of a message in kilobytes.
Returns:
getMaxSizeInMegabytes
public long getMaxSizeInMegabytes()
Gets the maximum size of the queue in megabytes, which is the size of memory allocated for the queue.
Returns:
getName
public String getName()
Gets the name of the queue.
Returns:
getStatus
public EntityStatus getStatus()
Get the status property: Status of a Service Bus resource.
Returns:
getUserMetadata
public String getUserMetadata()
Get the userMetadata property: Custom metdata that user can associate with the description. Max length is 1024 chars.
Returns:
isBatchedOperationsEnabled
public boolean isBatchedOperationsEnabled()
Get the enableBatchedOperations property: Value that indicates whether server-side batched operations are enabled.
Returns:
isDeadLetteringOnMessageExpiration
public boolean isDeadLetteringOnMessageExpiration()
Get the deadLetteringOnMessageExpiration property: A value that indicates whether this queue has dead letter support when a message expires.
Returns:
isDuplicateDetectionRequired
public boolean isDuplicateDetectionRequired()
Get the requiresDuplicateDetection property: A value indicating if this queue requires duplicate detection.
Returns:
isPartitioningEnabled
public boolean isPartitioningEnabled()
Get the enablePartitioning property: A value that indicates whether the queue is to be partitioned across multiple message brokers.
Returns:
isSessionRequired
public boolean isSessionRequired()
Get the requiresSession property: A value that indicates whether the queue supports the concept of sessions.
Returns:
setAutoDeleteOnIdle
public QueueProperties setAutoDeleteOnIdle(Duration autoDeleteOnIdle)
Set the autoDeleteOnIdle property: ISO 8601 timeSpan idle interval after which the queue is automatically deleted. The minimum duration is 5 minutes.
Parameters:
Returns:
setBatchedOperationsEnabled
public QueueProperties setBatchedOperationsEnabled(boolean enableBatchedOperations)
Set the enableBatchedOperations property: Value that indicates whether server-side batched operations are enabled.
Parameters:
Returns:
setDeadLetteringOnMessageExpiration
public QueueProperties setDeadLetteringOnMessageExpiration(boolean deadLetteringOnMessageExpiration)
Set the deadLetteringOnMessageExpiration property: A value that indicates whether this queue has dead letter support when a message expires.
Parameters:
Returns:
setDefaultMessageTimeToLive
public QueueProperties setDefaultMessageTimeToLive(Duration defaultMessageTimeToLive)
Set the defaultMessageTimeToLive property: ISO 8601 default message timespan to live value. This 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 TimeToLive is not set on a message itself.
Parameters:
Returns:
setDuplicateDetectionHistoryTimeWindow
public QueueProperties setDuplicateDetectionHistoryTimeWindow(Duration duplicateDetectionHistoryTimeWindow)
Set the duplicateDetectionHistoryTimeWindow property: ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.
Parameters:
Returns:
setForwardDeadLetteredMessagesTo
public QueueProperties setForwardDeadLetteredMessagesTo(String forwardDeadLetteredMessagesTo)
Set the forwardDeadLetteredMessagesTo property: The name of the recipient entity to which all the dead-lettered messages of this queue are forwarded to.
Parameters:
Returns:
setForwardTo
public QueueProperties setForwardTo(String forwardTo)
Set the forwardTo property: The name of the recipient entity to which all the messages sent to the queue are forwarded to.
Parameters:
Returns:
setLockDuration
public QueueProperties setLockDuration(Duration lockDuration)
Set the lockDuration property: ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. The maximum value for LockDuration is 5 minutes; the default value is 1 minute.
Parameters:
Returns:
setMaxDeliveryCount
public QueueProperties setMaxDeliveryCount(Integer maxDeliveryCount)
Sets the maximum delivery count. A message is automatically dead-lettered after this number of deliveries. Default value is 10.
Parameters:
Returns:
setMaxMessageSizeInKilobytes
public QueueProperties setMaxMessageSizeInKilobytes(long maxMessageSizeInKilobytes)
Set the maxMessageSizeInKilobytes property: The maximum size of a message in kilobytes.
Parameters:
Returns:
setMaxSizeInMegabytes
public QueueProperties setMaxSizeInMegabytes(Integer maxSizeInMegabytes)
Set the maxSizeInMegabytes property: The maximum size of the queue in megabytes, which is the size of memory allocated for the queue.
Parameters:
Returns:
setStatus
public QueueProperties setStatus(EntityStatus status)
Set the status property: Status of a Service Bus resource.
Parameters:
Returns:
setUserMetadata
public QueueProperties setUserMetadata(String userMetadata)
Set the userMetadata property: Custom metdata that user can associate with the description. Max length is 1024 chars.
Parameters:
Returns: