Interface Management.QuorumQueueSpecification
- Enclosing interface:
Management
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionconsumerTimeout(Duration timeout) Set the consumer timeout for the quorum queue.The 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:
-
consumerTimeout
Set the consumer timeout for the quorum queue.Quorum queues support configurable consumer timeouts to handle slow or stuck consumers. When a consumer holds unacknowledged messages beyond the configured timeout period, the messages are automatically returned to the queue and become available for redelivery by another consumer.
When a consumer timeout fires, for AMQP 1.0 clients, the broker sends a DISPOSITION frame with state=released instead of detaching the link. This allows the client to auto-settle the delivery and potentially recover without needing to re-establish the link. Until the consumer settles the timed out message it will not be assigned any further messages.
- Parameters:
timeout- the consumer timeout duration- Returns:
- quorum queue specification
- See Also:
-
queue
Management.QueueSpecification queue()Go back to the queue specification.- Returns:
- queue specification
-