Skip to content

Commit 2fd6218

Browse files
Document KafkaAdmin#createAdmin method changes
Signed-off-by: Anders Swanson <[email protected]>
1 parent 88d49de commit 2fd6218

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

spring-kafka-docs/src/main/antora/modules/ROOT/pages/whats-new.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,8 @@ For more details, see xref:kafka/sending-messages.adoc[Sending Messages] section
4545
=== Customizing Logging in DeadLetterPublishingRecovererFactory
4646

4747
When using `DeadLetterPublishingRecovererFactory`, the user applications can override the `maybeLogListenerException` method to customize the logging behavior.
48+
49+
[[x33-customize-admin-client-in-KafkaAdmin]]
50+
=== Customize Admin client in KafkaAdmin
51+
52+
When extending `KafkaAdmin`, user applications may override the `createAdmin` method to customize Admin client creation.

spring-kafka/src/main/java/org/springframework/kafka/core/KafkaAdmin.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
* @author Adrian Gygax
7878
* @author Sanghyeok An
7979
* @author Valentina Armenise
80+
* @author Anders Swanson
8081
*
8182
* @since 1.3
8283
*/
@@ -394,7 +395,7 @@ public Map<String, TopicDescription> describeTopics(String... topicNames) {
394395
* Creates a new {@link Admin} client instance using the {@link AdminClient} class.
395396
* @return the new {@link Admin} client instance.
396397
* @since 3.3.0
397-
* @see AdminClient#create(Map)
398+
* @see AdminClient#create(Map)
398399
*/
399400
protected Admin createAdmin() {
400401
return AdminClient.create(getAdminConfig());

spring-kafka/src/test/java/org/springframework/kafka/core/KafkaAdminTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
/**
7171
* @author Gary Russell
7272
* @author Adrian Gygax
73+
* @author Anders Swanson
7374
*
7475
* @since 1.3
7576
*/

0 commit comments

Comments
 (0)