Class KafkaStreamsInteractiveQueryService
java.lang.Object
org.springframework.kafka.streams.KafkaStreamsInteractiveQueryService
Provide a wrapper API around the interactive query stores in Kafka Streams.
Using this API, an application can gain access to a named state store in the
KafkaStreams under consideration.- Since:
- 3.2
- Author:
- Soby Chacko
-
Constructor Summary
ConstructorsConstructorDescriptionKafkaStreamsInteractiveQueryService(StreamsBuilderFactoryBean streamsBuilderFactoryBean) Construct an instance for querying state stores from the KafkaStreams in theStreamsBuilderFactoryBean. -
Method Summary
Modifier and TypeMethodDescription<T> TretrieveQueryableStore(String storeName, org.apache.kafka.streams.state.QueryableStoreType<T> storeType) Retrieve and return a queryable store by name created in the application.voidsetRetryTemplate(org.springframework.retry.support.RetryTemplate retryTemplate) CustomRetryTemplateprovided by the end users.
-
Constructor Details
-
KafkaStreamsInteractiveQueryService
Construct an instance for querying state stores from the KafkaStreams in theStreamsBuilderFactoryBean.- Parameters:
streamsBuilderFactoryBean-StreamsBuilderFactoryBeanforKafkaStreams.
-
-
Method Details
-
setRetryTemplate
public void setRetryTemplate(org.springframework.retry.support.RetryTemplate retryTemplate) CustomRetryTemplateprovided by the end users.- Parameters:
retryTemplate-RetryTemplate
-
retrieveQueryableStore
public <T> T retrieveQueryableStore(String storeName, org.apache.kafka.streams.state.QueryableStoreType<T> storeType) Retrieve and return a queryable store by name created in the application.- Type Parameters:
T- generic type for the queryable store- Parameters:
storeName- name of the queryable storestoreType- type of the queryable store- Returns:
- queryable store.
-