All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.touk.nussknacker.ui.db.timeseries.questdb.PurgeWalTask.scala Maven / Gradle / Ivy

There is a newer version: 1.17.0
Show newest version
package pl.touk.nussknacker.ui.db.timeseries.questdb

import io.questdb.cairo.CairoEngine
import io.questdb.cairo.wal.WalPurgeJob

class PurgeWalTask(private val engine: CairoEngine) {

  private val walPurgeJob = {
    val job = new WalPurgeJob(engine)
    engine.setWalPurgeJobRunLock(job.getRunLock)
    job
  }

  def runUnsafe(): Unit =
    walPurgeJob.run(2)

  def close(): Unit =
    walPurgeJob.close()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy