Class DefaultBackOffHandler
java.lang.Object
org.springframework.kafka.listener.DefaultBackOffHandler
- All Implemented Interfaces:
BackOffHandler
Default
BackOffHandler; suspends the thread for the back off. If a container is
provided, ListenerUtils.stoppableSleep(MessageListenerContainer, long) is used,
to terminate the suspension if the container is stopped.- Since:
- 2.9
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonNextBackOff(@Nullable MessageListenerContainer container, @Nullable Exception exception, long nextBackOff) Perform the next back off.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BackOffHandler
onNextBackOff
-
Constructor Details
-
DefaultBackOffHandler
public DefaultBackOffHandler()
-
-
Method Details
-
onNextBackOff
public void onNextBackOff(@Nullable MessageListenerContainer container, @Nullable Exception exception, long nextBackOff) Description copied from interface:BackOffHandlerPerform the next back off.- Specified by:
onNextBackOffin interfaceBackOffHandler- Parameters:
container- the container.exception- the exception.nextBackOff- the next back off.
-