simerplaha / SwayDB

Persistent and in-memory key-value storage engine for JVM that scales on a single machine.
https://swaydb.simer.au
Apache License 2.0
293 stars 16 forks source link

Implement a `Scheduler` that is backed by compaction thread #345

Open simerplaha opened 2 years ago

simerplaha commented 2 years ago

Schedular uses java.util.Timer which runs on a background Thread not created by the configured compaction ExecutionContext.

Use Futures to implement a simple Schedular instead of using a Timer.