Package org.apache.kafka.streams.state
Interface RocksDBConfigSetter
-
public interface RocksDBConfigSetter
An interface to that allows developers to customize the RocksDB settings for a given Store. Please read the RocksDB Tuning Guide. Note: if you choose to modify theorg.rocksdb.BlockBasedTableConfig
you should retrieve a reference to the existing one (rather than create a new BlockBasedTableConfig object) so as to not lose the other default settings. This can be done asBlockBasedTableConfig tableConfig = (BlockBasedTableConfig) options.tableFormatConfig();
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
LOG
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
close(String storeName, org.rocksdb.Options options)
Close any user-constructed objects that inherit fromorg.rocksdb.RocksObject
.void
setConfig(String storeName, org.rocksdb.Options options, Map<String,Object> configs)
Set the rocks db options for the provided storeName.
-
-
-
Method Detail
-
setConfig
void setConfig(String storeName, org.rocksdb.Options options, Map<String,Object> configs)
Set the rocks db options for the provided storeName.- Parameters:
storeName
- the name of the store being configuredoptions
- the RocksDB optionsconfigs
- the configuration supplied toStreamsConfig
-
close
default void close(String storeName, org.rocksdb.Options options)
Close any user-constructed objects that inherit fromorg.rocksdb.RocksObject
.Any object created with
new
insetConfig()
and that inherits fromorg.rocksdb.RocksObject
should haveorg.rocksdb.RocksObject#close()
called on it here to avoid leaking off-heap memory. Objects to be closed can be saved by the user or retrieved back fromoptions
using its getter methods.Example objects needing to be closed include
org.rocksdb.Filter
andorg.rocksdb.Cache
.- Parameters:
storeName
- the name of the store being configuredoptions
- the RocksDB options
-
-