We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 114f409 commit 9d3e326Copy full SHA for 9d3e326
spring-kafka/src/main/java/org/springframework/kafka/core/KafkaTemplate.java
@@ -145,6 +145,16 @@ public void setMessageConverter(RecordMessageConverter messageConverter) {
145
this.messageConverter = messageConverter;
146
}
147
148
+ /**
149
+ * Return true if this template supports transactions (has a transaction-capable
150
+ * producer factory).
151
+ * @return true or false.
152
+ * @since 2.1.3
153
+ */
154
+ public boolean isTransactional() {
155
+ return this.transactional;
156
+ }
157
+
158
@Override
159
public ListenableFuture<SendResult<K, V>> sendDefault(V data) {
160
return send(this.defaultTopic, data);
0 commit comments