spice.streamer.Monitor.scala Maven / Gradle / Ivy
package spice.streamer
trait Monitor {
def open(length: Option[Long]): Unit
def written(length: Long, total: Long, percent: Option[Double]): Unit
def failure(t: Throwable): Unit
def closed(): Unit
def completed(): Unit
}
object Monitor {
object Ignore extends Monitor {
override def open(length: Option[Long]): Unit = {}
override def written(length: Long, total: Long, percent: Option[Double]): Unit = {}
override def failure(t: Throwable): Unit = {}
override def completed(): Unit = {}
override def closed(): Unit = {}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy