Class BatchLoggingErrorHandler
java.lang.Object
org.springframework.kafka.listener.BatchLoggingErrorHandler
- All Implemented Interfaces:
BatchErrorHandler,GenericErrorHandler<org.apache.kafka.clients.consumer.ConsumerRecords<?,?>>
Deprecated.
Simple handler that logs each record.
- Since:
- 1.1
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.kafka.listener.BatchErrorHandler
handle, handleMethods inherited from interface org.springframework.kafka.listener.GenericErrorHandler
clearThreadState, handle, isAckAfterHandle, setAckAfterHandle
-
Constructor Details
-
BatchLoggingErrorHandler
public BatchLoggingErrorHandler()Deprecated.
-
-
Method Details
-
handle
public void handle(Exception thrownException, @Nullable org.apache.kafka.clients.consumer.ConsumerRecords<?, ?> data) Deprecated.Description copied from interface:GenericErrorHandlerHandle the exception.- Specified by:
handlein interfaceGenericErrorHandler<org.apache.kafka.clients.consumer.ConsumerRecords<?,?>> - Parameters:
thrownException- The exception.data- the data.
-
CommonLoggingErrorHandlerinstead.