A 3 Leveled in-memory database where the 3rd is persistent.
A 3 Leveled in-memory database where the 3rd is persistent.
For custom configurations read documentation on website: http://www.swaydb.io/configuring-levels
Type of key
Type of value
Root directory for all Level where appendix folder & files are created
Number of concurrent Segments opened
Size of LevelZero's maps (WAL)
Total size of in-memory Level (Level1) before Segments gets pushed to persistent Level (Level2)
Numbers of Segments to push from in-memory Level (Level1) to persistent Level (Level2)
Size of Level1's Segments
Size of Level2's Segments
Memory-maps Level2 Segments
Memory-maps Level2's appendix file
Size of
Secondary directories for all Levels where Segments get distributed.
Sets the max interval at which key-values get dropped from the cache. The delays are dynamically adjusted based on the current size of the cache to stay close the set cacheSize.
Sets the max interval at which Segments get closed. The delays are dynamically adjusted based on the current number of open Segments.
Controls the write speed.
Converts keys to Bytes
Converts values to Bytes
ExecutionContext
Database instance
(Since version ) see corresponding Javadoc for more information.