Class ConditionalDelegatingBatchErrorHandler

    • Constructor Detail

      • ConditionalDelegatingBatchErrorHandler

        public ConditionalDelegatingBatchErrorHandler​(ContainerAwareBatchErrorHandler defaultErrorHandler)
        Deprecated.
        Construct an instance with a default error handler that will be invoked if the exception has no matches.
        Parameters:
        defaultErrorHandler - the default error handler.
    • Method Detail

      • setErrorHandlers

        public void setErrorHandlers​(java.util.Map<java.lang.Class<? extends java.lang.Throwable>,​ContainerAwareBatchErrorHandler> delegates)
        Deprecated.
        Set the delegate error handlers; a LinkedHashMap argument is recommended so that the delegates are searched in a known order.
        Parameters:
        delegates - the delegates.
      • addDelegate

        public void addDelegate​(java.lang.Class<? extends java.lang.Throwable> throwable,
                                ContainerAwareBatchErrorHandler handler)
        Deprecated.
        Add a delegate to the end of the current collection.
        Parameters:
        throwable - the throwable for this handler.
        handler - the handler.
      • doHandle

        protected void doHandle​(java.lang.Exception thrownException,
                                @Nullable
                                org.apache.kafka.clients.consumer.ConsumerRecords<?,​?> records,
                                org.apache.kafka.clients.consumer.Consumer<?,​?> consumer,
                                MessageListenerContainer container,
                                @Nullable
                                java.lang.Runnable invokeListener)
        Deprecated.