public interface DslStoreSuppliers extends Configurable
DslStoreSuppliers
defines a grouping of factories to construct
stores for each of the types of state store implementations in Kafka
Streams. This allows configuration of a default store supplier beyond
the builtin defaults of RocksDB and In-Memory.
There are various ways that this configuration can be supplied to the application (in order of precedence):
Materialized.as(DslStoreSuppliers)
,
Materialized.withStoreType(DslStoreSuppliers)
, or
StreamJoined.withDslStoreSuppliers(DslStoreSuppliers)
TopologyConfig
and passed into the
StreamsBuilder(TopologyConfig)
constructorStreamsConfig
using
the StreamsConfig.DSL_STORE_SUPPLIERS_CLASS_CONFIG
Kafka Streams is packaged with some pre-existing DslStoreSuppliers
that exist in BuiltInDslStoreSuppliers
Modifier and Type | Method and Description |
---|---|
default void |
configure(Map<String,?> configs)
Configure this class with the given key-value pairs
|
KeyValueBytesStoreSupplier |
keyValueStore(DslKeyValueParams params) |
SessionBytesStoreSupplier |
sessionStore(DslSessionParams params) |
WindowBytesStoreSupplier |
windowStore(DslWindowParams params) |
default void configure(Map<String,?> configs)
Configurable
configure
in interface Configurable
KeyValueBytesStoreSupplier keyValueStore(DslKeyValueParams params)
WindowBytesStoreSupplier windowStore(DslWindowParams params)
SessionBytesStoreSupplier sessionStore(DslSessionParams params)