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

org.bitbucket.pshirshov.izumitk.HealthChecker.scala Maven / Gradle / Ivy

There is a newer version: 1.2.109
Show newest version
package org.bitbucket.pshirshov.izumitk


case class HealthCheck(name: String, status: HealthStatus)


/**
  * A trait inteded to represent an abstract health checker, returning
  * a sequence of abstract named healthchecks. Like database connection status,
  * web server availability, etc.
  *
  * '''Warning''': you must never statically inject health checker dependencies in
  * constructor. You should inject the [[com.google.inject.Injector]] instead.
  *
  * Healthchecker must never throw and must not prevent DI context from being created.
  *
  */
trait HealthChecker {
  def healthCheck(): Vector[HealthCheck]
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy