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> |
windowed(long retentionPeriod,
int numSegments,
boolean retainDuplicates)
Set the persistent store as a windowed key-value store
|
Stores.PersistentKeyValueFactory<K,V> windowed(long retentionPeriod, int numSegments, boolean retainDuplicates)
retentionPeriod - 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 windowStateStoreSupplier build()