|
32 | 32 | import org.springframework.kafka.KafkaException; |
33 | 33 | import org.springframework.kafka.listener.ContainerProperties.AckMode; |
34 | 34 | import org.springframework.kafka.support.SeekUtils; |
35 | | -import org.springframework.kafka.support.serializer.DeserializationException; |
36 | 35 | import org.springframework.lang.Nullable; |
37 | | -import org.springframework.messaging.converter.MessageConversionException; |
38 | | -import org.springframework.messaging.handler.invocation.MethodArgumentResolutionException; |
39 | 36 | import org.springframework.util.Assert; |
40 | 37 | import org.springframework.util.ObjectUtils; |
41 | 38 | import org.springframework.util.backoff.BackOff; |
42 | | -import org.springframework.util.backoff.FixedBackOff; |
43 | 39 |
|
44 | 40 | /** |
45 | 41 | * An error handler that seeks to the current offset for each topic in the remaining |
@@ -73,11 +69,12 @@ public SeekToCurrentErrorHandler() { |
73 | 69 | * 'maxFailures' have occurred for a topic/partition/offset. |
74 | 70 | * @param maxFailures the maxFailures; a negative value is treated as infinity. |
75 | 71 | * @deprecated in favor of {@link #SeekToCurrentErrorHandler(BackOff)}. |
76 | | - * <b>IMPORTANT</b> When using a {@link FixedBackOff}, the maxAttempts property |
77 | | - * represents retries (one less than maxFailures). To retry indefinitely, use a |
78 | | - * fixed or exponential {@link BackOff} configured appropriately. |
79 | | - * To use the other constructor with the semantics of this one, with maxFailures |
80 | | - * equal to 3, use {@code new SeekToCurrentErrorHandler(new FixedBackOff(0L, 2L)}. |
| 72 | + * <b>IMPORTANT</b> When using a |
| 73 | + * {@link org.springframework.util.backoff.FixedBackOff}, the maxAttempts property |
| 74 | + * represents retries (one less than maxFailures). To retry indefinitely, use a fixed |
| 75 | + * or exponential {@link BackOff} configured appropriately. To use the other |
| 76 | + * constructor with the semantics of this one, with maxFailures equal to 3, use |
| 77 | + * {@code new SeekToCurrentErrorHandler(new FixedBackOff(0L, 2L)}. |
81 | 78 | * @since 2.2.1 |
82 | 79 | */ |
83 | 80 | @Deprecated |
@@ -112,11 +109,11 @@ public SeekToCurrentErrorHandler(BiConsumer<ConsumerRecord<?, ?>, Exception> rec |
112 | 109 | * @param recoverer the recoverer; if null, the default (logging) recoverer is used. |
113 | 110 | * @param maxFailures the maxFailures; a negative value is treated as infinity. |
114 | 111 | * @deprecated in favor of {@link #SeekToCurrentErrorHandler(BiConsumer, BackOff)}. |
115 | | - * <b>IMPORTANT</b> When using a {@link FixedBackOff}, the maxAttempts property |
116 | | - * represents retries (one less than maxFailures). To retry indefinitely, use a |
117 | | - * fixed or exponential {@link BackOff} configured appropriately. |
118 | | - * To use the other constructor with the semantics of this one, with maxFailures |
119 | | - * equal to 3, use |
| 112 | + * <b>IMPORTANT</b> When using a |
| 113 | + * {@link org.springframework.util.backoff.FixedBackOff}, the maxAttempts property |
| 114 | + * represents retries (one less than maxFailures). To retry indefinitely, use a fixed |
| 115 | + * or exponential {@link BackOff} configured appropriately. To use the other |
| 116 | + * constructor with the semantics of this one, with maxFailures equal to 3, use |
120 | 117 | * {@code new SeekToCurrentErrorHandler(recoverer, new FixedBackOff(0L, 2L)}. |
121 | 118 | * @since 2.2 |
122 | 119 | */ |
@@ -155,9 +152,9 @@ public void setCommitRecovered(boolean commitRecovered) { // NOSONAR enhanced ja |
155 | 152 | * (until exhaustion) or not. If not, we go straight to the recoverer. By default, |
156 | 153 | * the following exceptions will not be retried: |
157 | 154 | * <ul> |
158 | | - * <li>{@link DeserializationException}</li> |
159 | | - * <li>{@link MessageConversionException}</li> |
160 | | - * <li>{@link MethodArgumentResolutionException}</li> |
| 155 | + * <li>{@link org.springframework.kafka.support.serializer.DeserializationException}</li> |
| 156 | + * <li>{@link org.springframework.messaging.converter.MessageConversionException}</li> |
| 157 | + * <li>{@link org.springframework.messaging.handler.invocation.MethodArgumentResolutionException}</li> |
161 | 158 | * <li>{@link NoSuchMethodException}</li> |
162 | 159 | * <li>{@link ClassCastException}</li> |
163 | 160 | * </ul> |
|
0 commit comments