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 Type
    Method
    Description
    handleReply(KafkaRecord<?,?> replyRecord)
    Handles a reply received from Kafka to extract errors, if any.
  • Method Details

    • handleReply

      Throwable handleReply(KafkaRecord<?,?> replyRecord)
      Handles a reply received from Kafka to extract errors, if any. Returned throwable will be used to fail the reply Uni. If reply record contains no error, returns null in order for the record to be delivered.
      Parameters:
      replyRecord - the reply message
      Returns:
      The throwable representing any error encountered during the reply.