Enum EventKinds
- Namespace
- RocksDbNet
- Assembly
- RocksDb.Net.dll
The events an EventListener wants to be told about.
[Flags]
public enum EventKinds
Fields
All = FlushBegin | FlushCompleted | CompactionBegin | CompactionCompleted | SubCompactionBegin | SubCompactionCompleted | ExternalFileIngested | BackgroundError | StallConditionsChanged | MemTableSealedEvery event. The default.
BackgroundError = 128CompactionBegin = 4CompactionCompleted = 8ExternalFileIngested = 64FlushBegin = 1FlushCompleted = 2MemTableSealed = 512None = 0No events.
StallConditionsChanged = 256SubCompactionBegin = 16SubCompactionCompleted = 32
Remarks
Override Subscribed to narrow this. The default is All, so a listener that says nothing receives everything and narrowing is an optimisation rather than a requirement — a listener cannot go silent by forgetting to declare an event it overrode.
What narrowing saves is the construction of the job-info object an event carries, which is measurable: a listener overriding five of the ten events allocates about twice what one overriding none does, while the boundary crossing itself costs nothing detectable. See the benchmarks.