Class InteractiveQueryService
- java.lang.Object
-
- io.micronaut.configuration.kafka.streams.InteractiveQueryService
-
public class InteractiveQueryService extends java.lang.ObjectServices to facilitate the interactive query capabilities of Kafka Streams. This class provides services such as querying for a particular store. This is part of the public API of the kafka streams binder and the users can inject this service in their applications to make use of it.- Since:
- 1.1.1
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> java.util.Optional<T>getQueryableStore(java.lang.String storeName, org.apache.kafka.streams.state.QueryableStoreType<T> storeType)Retrieve and return a queryable store by name created in the application.
-
-
-
Method Detail
-
getQueryableStore
public <T> java.util.Optional<T> getQueryableStore(java.lang.String storeName, org.apache.kafka.streams.state.QueryableStoreType<T> storeType)Retrieve and return a queryable store by name created in the application. If state store is not present an Optional.empty() will be returned.- Type Parameters:
T- generic queryable store- Parameters:
storeName- name of the queryable storestoreType- type of the queryable store- Returns:
- queryable store.
-
-