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

com.teambytes.inflatable.PeriodicTask.scala Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show 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 - 2024 Weber Informatics LLC | Privacy Policy