Skip to content

Commit d5f579e

Browse files
committed
KafkaTemplate Javadoc re Thread-safety
1 parent 59afa75 commit d5f579e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@
6262

6363

6464
/**
65-
* A template for executing high-level operations.
65+
* A template for executing high-level operations. When used with a
66+
* {@link DefaultKafkaProducerFactory}, the template is thread-safe. The producer factory
67+
* and {@link org.apache.kafka.clients.producer.KafkaProducer} ensure this; refer to their
68+
* respective javadocs.
6669
*
6770
* @param <K> the key type.
6871
* @param <V> the value type.

0 commit comments

Comments
 (0)