[][src]Trait rexrocksdb::EventListener

pub trait EventListener: Send + Sync {
    fn on_flush_completed(&self, _: &FlushJobInfo) { ... }
fn on_compaction_completed(&self, _: &CompactionJobInfo) { ... }
fn on_external_file_ingested(&self, _: &IngestionInfo) { ... } }

EventListener trait contains a set of call-back functions that will be called when specific RocksDB event happens such as flush. It can be used as a building block for developing custom features such as stats-collector or external compaction algorithm.

Note that call-back functions should not run for an extended period of time before the function returns, otherwise RocksDB may be blocked. For more information, please see doc of rocksdb.

Provided methods

Loading content...

Implementors

Loading content...