File tree 2 files changed +14
-0
lines changed
spring-kafka/src/main/java/org/springframework/kafka/config
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,9 @@ public void setRecoveryCallback(RecoveryCallback<? extends Object> recoveryCallb
206
206
* alive.
207
207
* @param statefulRetry true to enable stateful retry.
208
208
* @since 2.1.3
209
+ * @deprecated since 2.8 - use a suitably configured error handler instead.
209
210
*/
211
+ @ Deprecated
210
212
public void setStatefulRetry (boolean statefulRetry ) {
211
213
this .statefulRetry = statefulRetry ;
212
214
}
Original file line number Diff line number Diff line change @@ -344,6 +344,11 @@ public void setRetryTemplate(RetryTemplate retryTemplate) {
344
344
this .retryTemplate = retryTemplate ;
345
345
}
346
346
347
+ /**
348
+ * Get the recovery callback.
349
+ * @deprecated since 2.8 - use a suitably configured error handler instead.
350
+ * @return the recovery callback.
351
+ */
347
352
@ Deprecated
348
353
@ Nullable
349
354
protected RecoveryCallback <?> getRecoveryCallback () {
@@ -360,6 +365,11 @@ public void setRecoveryCallback(RecoveryCallback<? extends Object> recoveryCallb
360
365
this .recoveryCallback = recoveryCallback ;
361
366
}
362
367
368
+ /**
369
+ * @deprecated since 2.8 - use a suitably configured error handler instead.
370
+ * @return
371
+ */
372
+ @ Deprecated
363
373
protected boolean isStatefulRetry () {
364
374
return this .statefulRetry ;
365
375
}
@@ -372,7 +382,9 @@ protected boolean isStatefulRetry() {
372
382
* alive.
373
383
* @param statefulRetry true to enable stateful retry.
374
384
* @since 2.1.3
385
+ * @deprecated since 2.8 - use a suitably configured error handler instead.
375
386
*/
387
+ @ Deprecated
376
388
public void setStatefulRetry (boolean statefulRetry ) {
377
389
this .statefulRetry = statefulRetry ;
378
390
}
You can’t perform that action at this time.
0 commit comments