Interface DeadLetterPublishingRecoverer.ExceptionHeadersCreator
- Enclosing class:
- DeadLetterPublishingRecoverer
public static interface DeadLetterPublishingRecoverer.ExceptionHeadersCreator
Use this to provide a custom implementation to take complete control over exception
header creation for the output record.
- Since:
- 2.8.4
-
Method Summary
Modifier and TypeMethodDescriptionvoid
create
(org.apache.kafka.common.header.Headers kafkaHeaders, Exception exception, boolean isKey, DeadLetterPublishingRecoverer.HeaderNames headerNames) Create exception headers.
-
Method Details
-
create
void create(org.apache.kafka.common.header.Headers kafkaHeaders, Exception exception, boolean isKey, DeadLetterPublishingRecoverer.HeaderNames headerNames) Create exception headers.- Parameters:
kafkaHeaders
- theHeaders
to add the header(s) to.exception
- The exception.isKey
- whether the exception is for a key or value.headerNames
- the header names to use.
-