
com.teambytes.inflatable.PeriodicTask.scala Maven / Gradle / Ivy
The newest version!
package com.teambytes.inflatable
/**
* Runnable Task that can be run periodically, with the given rate in milli seconds
*/
trait PeriodicTask extends Runnable {
/**
* The rate at which this task is executed while the node is leader
*/
def periodMs: Long
/**
* The initial delay before this task is run for the first time after the node has become leader
*/
def initialDelayMs: Long = 0
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy