Interface ReplyFailureHandler
public interface ReplyFailureHandler
Handles failure cases in reply messages and extracts the throwable.
Typically, repliers can set a specific record header and send the reply in order for the ReplyFailureHandler implementation to extract the error.
CDI-managed beans that implement this interface are discovered using
the Identifier qualifier to be configured.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionhandleReply(KafkaRecord<?, ?> replyRecord) Handles a reply received from Kafka to extract errors, if any.
-
Method Details
-
handleReply
Handles a reply received from Kafka to extract errors, if any. Returned throwable will be used to fail the replyUni. If reply record contains no error, returnsnullin order for the record to be delivered.- Parameters:
replyRecord- the reply message- Returns:
- The throwable representing any error encountered during the reply.
-