Class ListenerContainerFactoryConfigurer

    • Method Detail

      • setBlockingRetriesBackOff

        public void setBlockingRetriesBackOff​(org.springframework.util.backoff.BackOff blockingBackOff)
        Set a BackOff to be used with blocking retries. If the BackOff execution returns STOP, the record will be forwarded to the next retry topic or to the DLT, depending on how the non-blocking retries are configured.
        Parameters:
        blockingBackOff - the BackOff policy to be used by blocking retries.
        Since:
        2.8.4
        See Also:
        DefaultErrorHandler
      • setBlockingRetryableExceptions

        @SafeVarargs
        public final void setBlockingRetryableExceptions​(java.lang.Class<? extends java.lang.Exception>... exceptionTypes)
        Specify the exceptions to be retried via blocking.
        Parameters:
        exceptionTypes - the exceptions that should be retried.
        Since:
        2.8.4
        See Also:
        DefaultErrorHandler
      • setErrorHandlerCustomizer

        public void setErrorHandlerCustomizer​(java.util.function.Consumer<DefaultErrorHandler> errorHandlerCustomizer)
      • createErrorHandler

        protected CommonErrorHandler createErrorHandler​(DeadLetterPublishingRecoverer deadLetterPublishingRecoverer,
                                                        org.springframework.kafka.retrytopic.ListenerContainerFactoryConfigurer.Configuration configuration)
      • setupBackoffAwareMessageListenerAdapter

        protected void setupBackoffAwareMessageListenerAdapter​(ConcurrentMessageListenerContainer<?,​?> container,
                                                               org.springframework.kafka.retrytopic.ListenerContainerFactoryConfigurer.Configuration configuration,
                                                               boolean isSetContainerProperties)