Example usage for Java org.springframework.kafka.core KafkaTemplate fields, constructors, methods, implement or subclass
The text is from its open source code.
KafkaTemplate(ProducerFactory Create an instance using the supplied producer factory and autoFlush false. |
T | executeInTransaction(OperationsCallback |
void | flush() Note It only makes sense to invoke this method if the ProducerFactory serves up a singleton producer (such as the DefaultKafkaProducerFactory ). |
boolean | isTransactional() |
ListenableFuture | send(String topic, @Nullable V data) |
ListenableFuture | send(ProducerRecord |
ListenableFuture | send(Message> message) |
ListenableFuture | sendDefault(K key, @Nullable V data) |
ListenableFuture | sendDefault(Integer partition, K key, @Nullable V data) |
void | sendOffsetsToTransaction(Map |
void | setDefaultTopic(String defaultTopic) Set the default topic for send methods where a topic is not provided. |
void | setMessageConverter(RecordMessageConverter messageConverter) Set the message converter to use. |