Interface Management.QuorumQueueSpecification
- Enclosing interface:
Management
public static interface Management.QuorumQueueSpecification
Specification of a quorum queue.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionThe dead letter strategy.deadLetterStrategy(String strategy) The dead letter strategy (as a string).delayedRetryMax(Duration max) Set the maximum delay for delayed retry.delayedRetryMin(Duration min) Set the minimum delay for delayed retry.Set the delayed retry type.deliveryLimit(int limit) Set the delivery limit (for poison message handling).initialMemberCount(int initialMemberCount) Set the number of initial members the quorum queue should have.queue()Go back to the queue specification.
-
Method Details
-
deadLetterStrategy
The dead letter strategy (as a string).- Parameters:
strategy- dead letter strategy- Returns:
- quorum queue specification
- See Also:
-
deadLetterStrategy
Management.QuorumQueueSpecification deadLetterStrategy(Management.QuorumQueueDeadLetterStrategy strategy) The dead letter strategy.- Parameters:
strategy- dead letter strategy- Returns:
- quorum queue specification
- See Also:
-
deliveryLimit
Set the delivery limit (for poison message handling).- Parameters:
limit- delivery limit- Returns:
- quorum queue specification
- See Also:
-
initialMemberCount
Set the number of initial members the quorum queue should have.- Parameters:
initialMemberCount- initial number of nodes- Returns:
- quorum queue specification
- See Also:
-
delayedRetryType
Set the delayed retry type.Defines the conditions for delaying a message when it is returned to the queue.
The delay is calculated with linear back-off based on the message's delivery count:
min(min_delay * delivery_count, max_delay). A per-message explicit delivery time can also be set by adding thex-opt-delivery-timeannotation (a Unix timestamp in milliseconds) when requeuing a message with annotations (withConsumer.Context.discard(java.util.Map).You must use
delayedRetryMin(java.time.Duration)to set up the minimum retry delay.Delayed retry support for quorum queues is available as of RabbitMQ 4.3.
- Parameters:
type- delayed retry type- Returns:
- quorum queue specification
- See Also:
-
delayedRetryMin
Set the minimum delay for delayed retry.- Parameters:
min- minimum delay- Returns:
- quorum queue specification
- See Also:
-
delayedRetryMax
Set the maximum delay for delayed retry.- Parameters:
max- maximum delay- Returns:
- quorum queue specification
- See Also:
-
queue
Management.QueueSpecification queue()Go back to the queue specification.- Returns:
- queue specification
-