Interface BatchErrorHandler
- All Superinterfaces:
GenericErrorHandler<org.apache.kafka.clients.consumer.ConsumerRecords<?,
?>>
- All Known Subinterfaces:
ConsumerAwareBatchErrorHandler
,ContainerAwareBatchErrorHandler
,ListenerInvokingBatchErrorHandler
@Deprecated(since="2.8",
forRemoval=true)
public interface BatchErrorHandler
extends GenericErrorHandler<org.apache.kafka.clients.consumer.ConsumerRecords<?,?>>
Deprecated, for removal: This API element is subject to removal in a future version.
Handles errors thrown during the execution of a
BatchMessageListener
.
The listener should communicate which position(s) in the list failed in the
exception.- Since:
- 1.1
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
handle
(Exception thrownException, org.apache.kafka.clients.consumer.ConsumerRecords<?, ?> data, org.apache.kafka.clients.consumer.Consumer<?, ?> consumer, MessageListenerContainer container) Deprecated, for removal: This API element is subject to removal in a future version.Handle the exception.default void
handle
(Exception thrownException, org.apache.kafka.clients.consumer.ConsumerRecords<?, ?> data, org.apache.kafka.clients.consumer.Consumer<?, ?> consumer, MessageListenerContainer container, Runnable invokeListener) Deprecated, for removal: This API element is subject to removal in a future version.Handle the exception.Methods inherited from interface org.springframework.kafka.listener.GenericErrorHandler
clearThreadState, handle, handle, isAckAfterHandle, setAckAfterHandle
-
Method Details
-
handle
default void handle(Exception thrownException, @Nullable org.apache.kafka.clients.consumer.ConsumerRecords<?, ?> data, org.apache.kafka.clients.consumer.Consumer<?, ?> consumer, MessageListenerContainer container) Deprecated, for removal: This API element is subject to removal in a future version.Handle the exception.- Parameters:
thrownException
- the exception.data
- the consumer records.consumer
- the consumer.container
- the container.
-
handle
default void handle(Exception thrownException, @Nullable org.apache.kafka.clients.consumer.ConsumerRecords<?, ?> data, org.apache.kafka.clients.consumer.Consumer<?, ?> consumer, MessageListenerContainer container, Runnable invokeListener) Deprecated, for removal: This API element is subject to removal in a future version.Handle the exception.- Parameters:
thrownException
- the exception.data
- the consumer records.consumer
- the consumer.container
- the container.invokeListener
- a callback to re-invoke the listener.- Since:
- 2.3.7
-
CommonErrorHandler
.