Class LoggingErrorHandler
- java.lang.Object
-
- org.springframework.kafka.listener.LoggingErrorHandler
-
- All Implemented Interfaces:
ErrorHandler,GenericErrorHandler<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>>
public class LoggingErrorHandler extends java.lang.Object implements ErrorHandler
TheErrorHandlerimplementation for logging purpose.
-
-
Constructor Summary
Constructors Constructor Description LoggingErrorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandle(java.lang.Exception thrownException, org.apache.kafka.clients.consumer.ConsumerRecord<?,?> record)Handle the exception.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.kafka.listener.ErrorHandler
handle
-
Methods inherited from interface org.springframework.kafka.listener.GenericErrorHandler
clearThreadState, handle, isAckAfterHandle, setAckAfterHandle
-
-
-
-
Method Detail
-
handle
public void handle(java.lang.Exception thrownException, @Nullable org.apache.kafka.clients.consumer.ConsumerRecord<?,?> record)Description copied from interface:GenericErrorHandlerHandle the exception.- Specified by:
handlein interfaceGenericErrorHandler<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>>- Parameters:
thrownException- The exception.record- the data.
-
-