K
- the key type.V
- the value type.public class KafkaResourceHolder<K,V>
extends org.springframework.transaction.support.ResourceHolderSupport
Constructor and Description |
---|
KafkaResourceHolder(org.apache.kafka.clients.producer.Producer<K,V> producer)
Construct an instance for the producer.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
commit() |
org.apache.kafka.clients.producer.Producer<K,V> |
getProducer() |
void |
rollback() |
clear, getDeadline, getTimeToLiveInMillis, getTimeToLiveInSeconds, hasTimeout, isOpen, isRollbackOnly, isSynchronizedWithTransaction, isVoid, released, requested, reset, resetRollbackOnly, setRollbackOnly, setSynchronizedWithTransaction, setTimeoutInMillis, setTimeoutInSeconds, unbound