Class DeadLetterPublishingRecoverer.HeaderNames.Builder.ExceptionInfo
java.lang.Object
org.springframework.kafka.listener.DeadLetterPublishingRecoverer.HeaderNames.Builder.ExceptionInfo
- Enclosing class:
- DeadLetterPublishingRecoverer.HeaderNames.Builder
Headers for data relative to the exception thrown.
- Since:
- 2.7
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the Header Names, asserting that none of them is null.exceptionCauseFqcn
(String exceptionCauseFqcn) Sets the name of the header that will be used to store the exceptionCauseFqcn of the original record.exceptionFqcn
(String exceptionFqcn) Sets the name of the header that will be used to store the exceptionFqcn of the original record.exceptionMessage
(String exceptionMessage) Sets the name of the header that will be used to store the exceptionMessage of the original record.exceptionStacktrace
(String exceptionStacktrace) Sets the name of the header that will be used to store the exceptionStacktrace of the original record.keyExceptionFqcn
(String keyExceptionFqcn) Sets the name of the header that will be used to store the keyExceptionFqcn of the original record.keyExceptionMessage
(String keyExceptionMessage) Sets the name of the header that will be used to store the keyExceptionMessage of the original record.keyExceptionStacktrace
(String keyExceptionStacktrace) Sets the name of the header that will be used to store the keyExceptionStacktrace of the original record.
-
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
public DeadLetterPublishingRecoverer.HeaderNames.Builder.ExceptionInfo exceptionFqcn(String 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
-