Skip to content

Commit 9176062

Browse files
committed
Retry twice in topology recovery retry
Instead of 1 by default. References #387
1 parent 9034a61 commit 9176062

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/rabbitmq/client/impl/recovery/TopologyRecoveryRetryHandlerBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* Builder to ease creation of {@link DefaultRetryHandler} instances.
2222
* <p>
2323
* Just override what you need. By default, retry conditions don't trigger retry,
24-
* retry operations are no-op, the number of retry attempts is 1, and the backoff
24+
* retry operations are no-op, the number of retry attempts is 2, and the backoff
2525
* policy doesn't wait at all.
2626
*
2727
* @see DefaultRetryHandler
@@ -40,7 +40,7 @@ public class TopologyRecoveryRetryHandlerBuilder {
4040
private DefaultRetryHandler.RetryOperation<?> bindingRecoveryRetryOperation = context -> null;
4141
private DefaultRetryHandler.RetryOperation<?> consumerRecoveryRetryOperation = context -> null;
4242

43-
private int retryAttempts = 1;
43+
private int retryAttempts = 2;
4444

4545
private BackoffPolicy backoffPolicy = nbAttempts -> {
4646
};

0 commit comments

Comments
 (0)