Class KafkaExceptionLogLevelAware
- java.lang.Object
-
- org.springframework.kafka.listener.KafkaExceptionLogLevelAware
-
- Direct Known Subclasses:
CommonContainerStoppingErrorHandler
,ContainerStoppingBatchErrorHandler
,ContainerStoppingErrorHandler
,ExceptionClassifier
,RetryingBatchErrorHandler
,SeekToCurrentBatchErrorHandler
public abstract class KafkaExceptionLogLevelAware extends java.lang.Object
A 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.Level
getLogLevel()
Set the level at which the exception thrown by this handler is logged.void
setLogLevel(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.
-
-