Interface ConsumerAwareErrorHandler
- All Superinterfaces:
ErrorHandler,GenericErrorHandler<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>>
- All Known Subinterfaces:
ContainerAwareErrorHandler,RemainingRecordsErrorHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Deprecated.
An error handler that has access to the consumer, for example to adjust
offsets after an error.
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidhandle(Exception thrownException, List<org.apache.kafka.clients.consumer.ConsumerRecord<?, ?>> data, org.apache.kafka.clients.consumer.Consumer<?, ?> consumer, MessageListenerContainer container) Deprecated.Handle the exception.default voidDeprecated.Handle the exception.voidhandle(Exception thrownException, org.apache.kafka.clients.consumer.ConsumerRecord<?, ?> data, org.apache.kafka.clients.consumer.Consumer<?, ?> consumer) Deprecated.Handle the exception.Methods inherited from interface org.springframework.kafka.listener.GenericErrorHandler
clearThreadState, isAckAfterHandle, setAckAfterHandle
-
Method Details
-
handle
default void handle(Exception thrownException, @Nullable org.apache.kafka.clients.consumer.ConsumerRecord<?, ?> data) Deprecated.Description copied from interface:GenericErrorHandlerHandle the exception.- Specified by:
handlein interfaceGenericErrorHandler<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>> - Parameters:
thrownException- The exception.data- the data.
-
handle
void handle(Exception thrownException, @Nullable org.apache.kafka.clients.consumer.ConsumerRecord<?, ?> data, org.apache.kafka.clients.consumer.Consumer<?, ?> consumer) Deprecated.Description copied from interface:GenericErrorHandlerHandle the exception.- Specified by:
handlein interfaceGenericErrorHandler<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>> - Parameters:
thrownException- The exception.data- the data.consumer- the consumer.
-
handle
default void handle(Exception thrownException, @Nullable List<org.apache.kafka.clients.consumer.ConsumerRecord<?, ?>> data, org.apache.kafka.clients.consumer.Consumer<?, ?> consumer, MessageListenerContainer container) Deprecated.Description copied from interface:ErrorHandlerHandle the exception.- Specified by:
handlein interfaceErrorHandler- Parameters:
thrownException- the exception.data- the remaining records including the one that failed.consumer- the consumer.container- the container.
-
CommonErrorHandler.