Class HealthCheckResponseBuilder


  • public abstract class HealthCheckResponseBuilder
    extends java.lang.Object
    A builder to construct a health check procedure response.

    The HealthCheckResponseBuilder class is reserved for an extension by implementation providers.

    • Constructor Detail

      • HealthCheckResponseBuilder

        public HealthCheckResponseBuilder()
    • Method Detail

      • name

        public abstract HealthCheckResponseBuilder name​(java.lang.String name)
        Sets the name of the health check response. Note: The health check response name is required and needs to be set before the response is constructed.
        Parameters:
        name - The health check response name
        Returns:
        this builder
      • withData

        public abstract HealthCheckResponseBuilder withData​(java.lang.String key,
                                                            java.lang.String value)
        Adds additional string data to the health check response. Puts the value identified by key to the data section of the health check response. Additional invocations of a withData method with the same key override the key-value pair.
        Parameters:
        key - the identifier
        value - the value
        Returns:
        this builder
      • withData

        public abstract HealthCheckResponseBuilder withData​(java.lang.String key,
                                                            long value)
        Adds additional numeric data to the health check response. Puts the long value identified by key to the data section of the health check response. Additional invocations of a withData method with the same key override the key-value pair.
        Parameters:
        key - the identifier
        value - the value
        Returns:
        this builder
      • withData

        public abstract HealthCheckResponseBuilder withData​(java.lang.String key,
                                                            boolean value)
        Adds additional boolean data to the health check response. Puts the boolean value identified by key to the data section of the health check response. Additional invocations of a withData method with the same key override the key-value pair.
        Parameters:
        key - the identifier
        value - the value
        Returns:
        this builder
      • state

        public abstract HealthCheckResponseBuilder state​(boolean up)
        Sets the status of the health check response according to the boolean value up.
        Parameters:
        up - the status
        Returns:
        this builder