Class AuthCache.Result

java.lang.Object
io.confluent.security.auth.metadata.AuthCache.Result
Enclosing interface:
AuthCache

public static class AuthCache.Result extends Object
The result of a health check call.
  • Method Details

    • isHealthy

      public boolean isHealthy()
      Returns:
      true if the store is healthy
    • getMessage

      public String getMessage()
      Any message provided as part of the check
    • healthy

      public static AuthCache.Result healthy()
      Returns:
      a healthy result, with no message.
    • healthy

      public static AuthCache.Result healthy(String message)
      Parameters:
      message - a message to accompany the result
      Returns:
      a healthy result, with the given message
    • unhealthy

      public static AuthCache.Result unhealthy(String message)
      Parameters:
      message - a message to accompany the result
      Returns:
      an unhealthy result, with the given message
    • toString

      public String toString()
      Overrides:
      toString in class Object