Skip to content

Commit bdb7e84

Browse files
committed
Polish Container setTransactionManager Javadocs
1 parent 46c63e2 commit bdb7e84

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

spring-kafka/src/main/java/org/springframework/kafka/listener/ContainerProperties.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -553,9 +553,13 @@ public PlatformTransactionManager getTransactionManager() {
553553
}
554554

555555
/**
556-
* Set the transaction manager to start a transaction; offsets are committed with
557-
* semantics equivalent to {@link AckMode#RECORD} and {@link AckMode#BATCH} depending
558-
* on the listener type (record or batch).
556+
* Set the transaction manager to start a transaction; if it is a
557+
* {@link org.springframework.kafka.transaction.KafkaAwareTransactionManager}, offsets
558+
* are committed with semantics equivalent to {@link AckMode#RECORD} and
559+
* {@link AckMode#BATCH} depending on the listener type (record or batch). For other
560+
* transaction managers, adding the transaction manager to the container facilitates,
561+
* for example, a record or batch interceptor participating in the same transaction
562+
* (you must set the container's {@code interceptBeforeTx} property to false).
559563
* @param transactionManager the transaction manager.
560564
* @since 1.3
561565
* @see #setAckMode(AckMode)

0 commit comments

Comments
 (0)