Class KafkaExceptionLogLevelAware

java.lang.Object
org.springframework.kafka.listener.KafkaExceptionLogLevelAware
Direct Known Subclasses:
CommonContainerStoppingErrorHandler, ExceptionClassifier

public abstract class KafkaExceptionLogLevelAware extends Object
A top level abstract class for classes that can be configured with a KafkaException.Level.
Since:
2.5
Author:
Gary Russell
  • Constructor Details

    • KafkaExceptionLogLevelAware

      public KafkaExceptionLogLevelAware()
  • Method Details

    • 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.