Interface ReplyHeadersConfigurer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A strategy for configuring which headers, if any, should be set in a reply message.
- Since:
- 2.2
-
Method Summary
Modifier and TypeMethodDescriptionA map of additional headers to add to the reply message.booleanshouldCopy(String headerName, Object headerValue) Return true if the header should be copied to the reply message.
-
Method Details
-
shouldCopy
Return true if the header should be copied to the reply message.KafkaHeaders.CORRELATION_IDwill not be offered; it is always copied.MessageHeaders.IDandMessageHeaders.TIMESTAMPare never copied.KafkaHeaders.RECEIVED*headers are never copied.- Parameters:
headerName- the header name.headerValue- the header value.- Returns:
- true to copy.
-
additionalHeaders
A map of additional headers to add to the reply message. IMPORTANT: Any existing headers with the same name will be replaced by those returned by this method.- Returns:
- the headers.
-