Interface StateStoreProvider
-
- All Known Implementing Classes:
GlobalStateStoreProvider
,WrappingStoreProvider
public interface StateStoreProvider
Provides access toStateStore
s that have been created as part of theProcessorTopology
. To get access to custom stores developers should implementQueryableStoreType
.- See Also:
QueryableStoreTypes
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> List<T>
stores(String storeName, QueryableStoreType<T> queryableStoreType)
Find instances of StateStore that are accepted byQueryableStoreType.accepts(org.apache.kafka.streams.processor.StateStore)
and have the provided storeName.
-
-
-
Method Detail
-
stores
<T> List<T> stores(String storeName, QueryableStoreType<T> queryableStoreType)
Find instances of StateStore that are accepted byQueryableStoreType.accepts(org.apache.kafka.streams.processor.StateStore)
and have the provided storeName.- Type Parameters:
T
- The type of the Store- Parameters:
storeName
- name of the storequeryableStoreType
- filter stores based on this queryableStoreType- Returns:
- List of the instances of the store in this topology. Empty List if not found
-
-