K
- the type of keysV
- the type of valuespublic static interface Stores.PersistentKeyValueFactory<K,V>
Modifier and Type | Method and Description |
---|---|
StateStoreSupplier |
build()
Return the instance of StateStoreSupplier of new key-value store.
|
Stores.PersistentKeyValueFactory<K,V> |
disableLogging()
Indicates that a changelog should not be created for the key-value store
|
Stores.PersistentKeyValueFactory<K,V> |
enableCaching()
Caching should be enabled on the created store.
|
Stores.PersistentKeyValueFactory<K,V> |
enableLogging(Map<String,String> config)
Indicates that a changelog should be created for the store.
|
Stores.PersistentKeyValueFactory<K,V> |
windowed(long windowSize,
long retentionPeriod,
int numSegments,
boolean retainDuplicates)
Set the persistent store as a windowed key-value store
|
Stores.PersistentKeyValueFactory<K,V> windowed(long windowSize, long retentionPeriod, int numSegments, boolean retainDuplicates)
windowSize
- size of the windowsretentionPeriod
- the maximum period of time in milli-second to keep each window in this storenumSegments
- the maximum number of segments for rolling the windowed storeretainDuplicates
- whether or not to retain duplicate data within the windowStores.PersistentKeyValueFactory<K,V> enableLogging(Map<String,String> config)
config
- any configs that should be applied to the changelogStores.PersistentKeyValueFactory<K,V> disableLogging()
Stores.PersistentKeyValueFactory<K,V> enableCaching()
StateStoreSupplier build()