Interface HealthCheck.RedisHealthCheckOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getKey()
      If set, optionally perform ``EXISTS <key>`` instead of ``PING``.
      com.google.protobuf.ByteString getKeyBytes()
      If set, optionally perform ``EXISTS <key>`` instead of ``PING``.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getKey

        String getKey()
         If set, optionally perform ``EXISTS <key>`` instead of ``PING``. A return value
         from Redis of 0 (does not exist) is considered a passing healthcheck. A return value other
         than 0 is considered a failure. This allows the user to mark a Redis instance for maintenance
         by setting the specified key to any value and waiting for traffic to drain.
         
        string key = 1;
        Returns:
        The key.
      • getKeyBytes

        com.google.protobuf.ByteString getKeyBytes()
         If set, optionally perform ``EXISTS <key>`` instead of ``PING``. A return value
         from Redis of 0 (does not exist) is considered a passing healthcheck. A return value other
         than 0 is considered a failure. This allows the user to mark a Redis instance for maintenance
         by setting the specified key to any value and waiting for traffic to drain.
         
        string key = 1;
        Returns:
        The bytes for key.