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 java.lang.ObjectHeaders for data relative to the exception thrown.- Since:
- 2.7
-
-
Constructor Summary
Constructors Constructor Description ExceptionInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeadLetterPublishingRecoverer.HeaderNamesbuild()Builds the Header Names, asserting that none of them is null.DeadLetterPublishingRecoverer.HeaderNames.Builder.ExceptionInfoexceptionCauseFqcn(java.lang.String exceptionCauseFqcn)Sets the name of the header that will be used to store the exceptionCauseFqcn of the original record.DeadLetterPublishingRecoverer.HeaderNames.Builder.ExceptionInfoexceptionFqcn(java.lang.String exceptionFqcn)Sets the name of the header that will be used to store the exceptionFqcn of the original record.DeadLetterPublishingRecoverer.HeaderNames.Builder.ExceptionInfoexceptionMessage(java.lang.String exceptionMessage)Sets the name of the header that will be used to store the exceptionMessage of the original record.DeadLetterPublishingRecoverer.HeaderNames.Builder.ExceptionInfoexceptionStacktrace(java.lang.String exceptionStacktrace)Sets the name of the header that will be used to store the exceptionStacktrace of the original record.DeadLetterPublishingRecoverer.HeaderNames.Builder.ExceptionInfokeyExceptionFqcn(java.lang.String keyExceptionFqcn)Sets the name of the header that will be used to store the keyExceptionFqcn of the original record.DeadLetterPublishingRecoverer.HeaderNames.Builder.ExceptionInfokeyExceptionMessage(java.lang.String keyExceptionMessage)Sets the name of the header that will be used to store the keyExceptionMessage of the original record.DeadLetterPublishingRecoverer.HeaderNames.Builder.ExceptionInfokeyExceptionStacktrace(java.lang.String keyExceptionStacktrace)Sets the name of the header that will be used to store the keyExceptionStacktrace of the original record.
-
-
-
Method Detail
-
keyExceptionFqcn
public DeadLetterPublishingRecoverer.HeaderNames.Builder.ExceptionInfo keyExceptionFqcn(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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
public DeadLetterPublishingRecoverer.HeaderNames build()
Builds the Header Names, asserting that none of them is null.- Returns:
- the HeaderNames instance.
- Since:
- 2.7
-
-