Package org.apache.kafka.streams.state
Interface RocksDBConfigSetter
-
public interface RocksDBConfigSetterAn 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.BlockBasedTableConfigyou 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.LoggerLOG
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose(String storeName, org.rocksdb.Options options)Close any user-constructed objects that inherit fromorg.rocksdb.RocksObject.voidsetConfig(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
newinsetConfig()and that inherits fromorg.rocksdb.RocksObjectshould 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 fromoptionsusing its getter methods.Example objects needing to be closed include
org.rocksdb.Filterandorg.rocksdb.Cache.- Parameters:
storeName- the name of the store being configuredoptions- the RocksDB options
-
-