spice.streamer.Monitor.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spice-core_3 Show documentation
Show all versions of spice-core_3 Show documentation
Core functionality leveraged and shared by most other sub-projects of YouI.
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