Class TopologyRecoveryRetryLogic
java.lang.Object
com.rabbitmq.client.impl.recovery.TopologyRecoveryRetryLogic
Useful ready-to-use conditions and operations for
DefaultRetryHandler
.
They're composed and used with the TopologyRecoveryRetryHandlerBuilder
.- Since:
- 5.4.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final BiPredicate
<RecordedEntity, Exception> Channel has been closed because of a resource that doesn't exist.static final DefaultRetryHandler.RetryOperation
<Void> Recover a binding.static final DefaultRetryHandler.RetryOperation
<Void> Recover the destination queue of a binding.static final DefaultRetryHandler.RetryOperation
<Void> Recover a channel.static final DefaultRetryHandler.RetryOperation
<String> Recover a consumer.static final DefaultRetryHandler.RetryOperation
<Void> Recover the queue of a consumer.static final DefaultRetryHandler.RetryOperation
<Void> Recover all the bindings of the queue of a consumer.static final DefaultRetryHandler.RetryOperation
<Void> Recover earlier auto-delete or exclusive queues that share the same channel as this retry contextstatic final DefaultRetryHandler.RetryOperation
<String> Recover earlier consumers that share the same channel as this retry contextstatic final DefaultRetryHandler.RetryOperation
<Void> Recover earlier bindings that share the same queue as this retry contextstatic final DefaultRetryHandler.RetryOperation
<Void> Recover a queuestatic final TopologyRecoveryRetryHandlerBuilder
Pre-configuredTopologyRecoveryRetryHandlerBuilder
that retries recovery of bindings and consumers when their respective queue is not found. -
Constructor Summary
-
Method Summary
-
Field Details
-
CHANNEL_CLOSED_NOT_FOUND
Channel has been closed because of a resource that doesn't exist. -
RECOVER_CHANNEL
Recover a channel. -
RECOVER_QUEUE
Recover a queue -
RECOVER_BINDING_QUEUE
Recover the destination queue of a binding. -
RECOVER_BINDING
Recover a binding. -
RECOVER_PREVIOUS_QUEUE_BINDINGS
Recover earlier bindings that share the same queue as this retry context -
RECOVER_CONSUMER_QUEUE
Recover the queue of a consumer. -
RECOVER_CONSUMER_QUEUE_BINDINGS
Recover all the bindings of the queue of a consumer. -
RECOVER_CONSUMER
Recover a consumer. -
RECOVER_PREVIOUS_CONSUMERS
Recover earlier consumers that share the same channel as this retry context -
RECOVER_PREVIOUS_AUTO_DELETE_QUEUES
Recover earlier auto-delete or exclusive queues that share the same channel as this retry context -
RETRY_ON_QUEUE_NOT_FOUND_RETRY_HANDLER
Pre-configuredTopologyRecoveryRetryHandlerBuilder
that retries recovery of bindings and consumers when their respective queue is not found. This retry handler can be useful for long recovery processes, whereby auto-delete queues can be deleted between queue recovery and binding/consumer recovery. Also useful to retry channel-closed 404 errors that may arise with auto-delete queues during a cluster cycle.
-
-
Constructor Details
-
TopologyRecoveryRetryLogic
public TopologyRecoveryRetryLogic()
-