Class ContainerPausingBackOffHandler

  • All Implemented Interfaces:
    BackOffHandler

    public class ContainerPausingBackOffHandler
    extends java.lang.Object
    implements BackOffHandler
    A BackOffHandler that pauses the container for the backoff.
    Since:
    2.9
    • Method Detail

      • onNextBackOff

        public void onNextBackOff​(@Nullable
                                  MessageListenerContainer container,
                                  java.lang.Exception exception,
                                  long nextBackOff)
        Description copied from interface: BackOffHandler
        Perform the next back off.
        Specified by:
        onNextBackOff in interface BackOffHandler
        Parameters:
        container - the container.
        exception - the exception.
        nextBackOff - the next back off.
      • onNextBackOff

        public void onNextBackOff​(MessageListenerContainer container,
                                  org.apache.kafka.common.TopicPartition partition,
                                  long nextBackOff)
        Description copied from interface: BackOffHandler
        Perform the next back off for a partition.
        Specified by:
        onNextBackOff in interface BackOffHandler
        Parameters:
        container - the container.
        partition - the partition.
        nextBackOff - the next back off.