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

spice.streamer.Monitor.scala Maven / Gradle / Ivy

There is a newer version: 0.7.2
Show newest version
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