Class HealthCheckStatus

java.lang.Object
com.linecorp.armeria.server.healthcheck.HealthCheckStatus

@UnstableApi public final class HealthCheckStatus extends Object
The result of health check with interval for next check.
  • Constructor Details

    • HealthCheckStatus

      public HealthCheckStatus(boolean isHealthy, long ttlMillis)
      Create the result of the health check.
      Parameters:
      isHealthy - health check result
      ttlMillis - interval for scheduling the next check
  • Method Details

    • isHealthy

      public boolean isHealthy()
      Return the result of health check.
    • ttlMillis

      public long ttlMillis()
      Return the interval for scheduling the next check.
    • toString

      public String toString()
      Overrides:
      toString in class Object