Skip to content

Commit

Permalink
spring-projectsGH-2134: Doc and Javadoc Polishihg
Browse files Browse the repository at this point in the history
  • Loading branch information
garyrussell committed Mar 7, 2022
1 parent 66b91de commit 17b738e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion spring-kafka-docs/src/main/asciidoc/whats-new.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ See the note at the end of <<batch-listeners>> for more information.

The `@KafkaListener` annotation now has the `filter` attribute, to override the container factory's `RecordFilterStrategy` for just this listener.

The `@KafkaListener` annotation now the "info" attribute; this is used to populate the new listener container property `listenerInfo`.
The `@KafkaListener` annotation now has the `info` attribute; this is used to populate the new listener container property `listenerInfo`.
This is then used to populate a `KafkaHeaders.LISTENER_INFO` header in each record which can be used in `RecordInterceptor`, `RecordFilterStrategy`, or the listener itself.
See <<li-header>> and <<alc-props,Abstract Listener Container Properties>> for more information.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,14 @@

/**
* Static information that will be added as a header with key
* {@link org.springframework.kafka.support.KafkaHeaders#LISTENER_INFO}. This can be used, for example, in a
* {@link org.springframework.kafka.listener.RecordInterceptor}, {@link RecordFiorg.springframework.kafka.listener.adapter.RecordFilterStrategylterStrategy} or the listener itself, for
* any purposes.
* {@link org.springframework.kafka.support.KafkaHeaders#LISTENER_INFO}. This can be
* used, for example, in a
* {@link org.springframework.kafka.listener.RecordInterceptor},
* {@link org.springframework.kafka.listener.adapter.RecordFilterStrategy} or the
* listener itself, for any purposes.
* <p>
* SpEL {@code #{...}} and property place holders {@code ${...}} are supported, but it
* must resolve to a String or `byte[]`.
* must resolve to a String or {@code byte[]}.
* <p>
* This header will be stripped out if an outbound record is created with the headers
* from an input record.
Expand Down

0 comments on commit 17b738e

Please sign in to comment.