Class DeadLetterPublishingRecoverer.HeaderNames.Builder.ExceptionInfo

java.lang.Object
org.springframework.kafka.listener.DeadLetterPublishingRecoverer.HeaderNames.Builder.ExceptionInfo
Enclosing class:
DeadLetterPublishingRecoverer.HeaderNames.Builder

public class DeadLetterPublishingRecoverer.HeaderNames.Builder.ExceptionInfo extends Object
Headers for data relative to the exception thrown.
Since:
2.7
Author:
Tomaz Fernandes
  • Constructor Details

    • ExceptionInfo

      public ExceptionInfo()
  • Method Details

    • keyExceptionFqcn

      public DeadLetterPublishingRecoverer.HeaderNames.Builder.ExceptionInfo keyExceptionFqcn(String keyExceptionFqcn)
      Sets the name of the header that will be used to store the keyExceptionFqcn of the original record.
      Parameters:
      keyExceptionFqcn - the keyExceptionFqcn header name.
      Returns:
      the Exception builder instance
      Since:
      2.7
    • exceptionFqcn

      Sets the name of the header that will be used to store the exceptionFqcn of the original record.
      Parameters:
      exceptionFqcn - the exceptionFqcn header name.
      Returns:
      the Exception builder instance
      Since:
      2.7
    • exceptionCauseFqcn

      public DeadLetterPublishingRecoverer.HeaderNames.Builder.ExceptionInfo exceptionCauseFqcn(String exceptionCauseFqcn)
      Sets the name of the header that will be used to store the exceptionCauseFqcn of the original record.
      Parameters:
      exceptionCauseFqcn - the exceptionFqcn header name.
      Returns:
      the Exception builder instance
      Since:
      2.8
    • keyExceptionMessage

      public DeadLetterPublishingRecoverer.HeaderNames.Builder.ExceptionInfo keyExceptionMessage(String keyExceptionMessage)
      Sets the name of the header that will be used to store the keyExceptionMessage of the original record.
      Parameters:
      keyExceptionMessage - the keyExceptionMessage header name.
      Returns:
      the Exception builder instance
      Since:
      2.7
    • exceptionMessage

      public DeadLetterPublishingRecoverer.HeaderNames.Builder.ExceptionInfo exceptionMessage(String exceptionMessage)
      Sets the name of the header that will be used to store the exceptionMessage of the original record.
      Parameters:
      exceptionMessage - the exceptionMessage header name.
      Returns:
      the Exception builder instance
      Since:
      2.7
    • keyExceptionStacktrace

      public DeadLetterPublishingRecoverer.HeaderNames.Builder.ExceptionInfo keyExceptionStacktrace(String keyExceptionStacktrace)
      Sets the name of the header that will be used to store the keyExceptionStacktrace of the original record.
      Parameters:
      keyExceptionStacktrace - the keyExceptionStacktrace header name.
      Returns:
      the Exception builder instance
      Since:
      2.7
    • exceptionStacktrace

      public DeadLetterPublishingRecoverer.HeaderNames.Builder.ExceptionInfo exceptionStacktrace(String exceptionStacktrace)
      Sets the name of the header that will be used to store the exceptionStacktrace of the original record.
      Parameters:
      exceptionStacktrace - the exceptionStacktrace header name.
      Returns:
      the Exception builder instance
      Since:
      2.7
    • build

      Builds the Header Names, asserting that none of them is null.
      Returns:
      the HeaderNames instance.
      Since:
      2.7