Magnet for checkers returning a scala.Boolean (or convertible to Boolean).
Magnet for checkers returning an scala.util.Either.
Magnet for checkers returning a scala.concurrent.Future.
Magnet for checkers returning a scala.concurrent.Future.
The check will block waiting for the scala.concurrent.Future to complete. It is given a 3-second default timeout after which the scala.concurrent.Future will be considered a failure and the health check will consequently fail.
Magnet for checkers returning a com.codahale.metrics.health.HealthCheck.Result.
Magnet for checkers returning an scala.util.Try.
Magnet for checkers returning a scala.Unit.
Magnet for checkers returning a scala.Unit.
If the checker
throws an exception the check is considered failed, otherwise a success.