K
- the type of keysV
- the type of valuespublic static interface Stores.InMemoryKeyValueFactory<K,V>
Modifier and Type | Method and Description |
---|---|
StateStoreSupplier |
build()
Return the instance of StateStoreSupplier of new key-value store.
|
Stores.InMemoryKeyValueFactory<K,V> |
disableLogging()
Indicates that a changelog should not be created for the key-value store
|
Stores.InMemoryKeyValueFactory<K,V> |
enableLogging(java.util.Map<java.lang.String,java.lang.String> config)
Indicates that a changelog should be created for the store.
|
Stores.InMemoryKeyValueFactory<K,V> |
maxEntries(int capacity)
Limits the in-memory key-value store to hold a maximum number of entries.
|
Stores.InMemoryKeyValueFactory<K,V> maxEntries(int capacity)
Integer.MAX_VALUE
, which is
equivalent to not placing a limit on the number of entries.capacity
- the maximum capacity of the in-memory cache; should be one less than a power of 2java.lang.IllegalArgumentException
- if the capacity is not positiveStores.InMemoryKeyValueFactory<K,V> enableLogging(java.util.Map<java.lang.String,java.lang.String> config)
config
- any configs that should be applied to the changelogStores.InMemoryKeyValueFactory<K,V> disableLogging()
StateStoreSupplier build()