Chr*_*ris 3 apache-kafka apache-kafka-streams spring-kafka
引用本文档的 4.2.6 https://docs.spring.io/spring-kafka/reference/htmlsingle/#kafka-streams
您如何使用 kafka 流弹簧支持访问状态存储?
没有春天你能做什么?
StreamsBuilder builder = ...;
// Start an instance of the topology
KafkaStreams streams = new KafkaStreams(builder, config);
...
// Get the key-value store CountsKeyValueStore
ReadOnlyKeyValueStore<String, Long> keyValueStore =
streams.store("CountsKeyValueStore", QueryableStoreTypes.keyValueStore());
Run Code Online (Sandbox Code Playgroud)
但我不确定如何访问 KafkaStreams 对象。
| 归档时间: |
|
| 查看次数: |
1288 次 |
| 最近记录: |