Class KafkaExceptionLogLevelAware
- java.lang.Object
-
- org.springframework.kafka.listener.KafkaExceptionLogLevelAware
-
- Direct Known Subclasses:
CommonContainerStoppingErrorHandler,ExceptionClassifier,SeekToCurrentBatchErrorHandler
public abstract class KafkaExceptionLogLevelAware extends java.lang.ObjectA top level abstract class for classes that can be configured with aKafkaException.Level.- Since:
- 2.5
- Author:
- Gary Russell
-
-
Constructor Summary
Constructors Constructor Description KafkaExceptionLogLevelAware()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected KafkaException.LevelgetLogLevel()Set the level at which the exception thrown by this handler is logged.voidsetLogLevel(KafkaException.Level logLevel)Set the level at which the exception thrown by this handler is logged.
-
-
-
Method Detail
-
setLogLevel
public void setLogLevel(KafkaException.Level logLevel)
Set the level at which the exception thrown by this handler is logged.- Parameters:
logLevel- the level (default ERROR).
-
getLogLevel
protected KafkaException.Level getLogLevel()
Set the level at which the exception thrown by this handler is logged.- Returns:
- the level.
-
-