Skip to content

Commit aca14ef

Browse files
committed
Polish Container setTransactionManager Javadocs
1 parent 2fcb082 commit aca14ef

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

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

+7-3
Original file line numberDiff line numberDiff line change
@@ -507,9 +507,13 @@ public PlatformTransactionManager getTransactionManager() {
507507
}
508508

509509
/**
510-
* Set the transaction manager to start a transaction; offsets are committed with
511-
* semantics equivalent to {@link AckMode#RECORD} and {@link AckMode#BATCH} depending
512-
* on the listener type (record or batch).
510+
* Set the transaction manager to start a transaction; if it is a
511+
* {@link org.springframework.kafka.transaction.KafkaAwareTransactionManager}, offsets
512+
* are committed with semantics equivalent to {@link AckMode#RECORD} and
513+
* {@link AckMode#BATCH} depending on the listener type (record or batch). For other
514+
* transaction managers, adding the transaction manager to the container facilitates,
515+
* for example, a record or batch interceptor participating in the same transaction
516+
* (you must set the container's {@code interceptBeforeTx} property to false).
513517
* @param transactionManager the transaction manager.
514518
* @since 1.3
515519
* @see #setAckMode(AckMode)

0 commit comments

Comments
 (0)