Class VirtualGatewayHealthCheckPolicy

    • Method Detail

      • healthyThreshold

        public final Integer healthyThreshold()

        The number of consecutive successful health checks that must occur before declaring the listener healthy.

        Returns:
        The number of consecutive successful health checks that must occur before declaring the listener healthy.
      • intervalMillis

        public final Long intervalMillis()

        The time period in milliseconds between each health check execution.

        Returns:
        The time period in milliseconds between each health check execution.
      • path

        public final String path()

        The destination path for the health check request. This value is only used if the specified protocol is HTTP or HTTP/2. For any other protocol, this value is ignored.

        Returns:
        The destination path for the health check request. This value is only used if the specified protocol is HTTP or HTTP/2. For any other protocol, this value is ignored.
      • port

        public final Integer port()

        The destination port for the health check request. This port must match the port defined in the PortMapping for the listener.

        Returns:
        The destination port for the health check request. This port must match the port defined in the PortMapping for the listener.
      • timeoutMillis

        public final Long timeoutMillis()

        The amount of time to wait when receiving a response from the health check, in milliseconds.

        Returns:
        The amount of time to wait when receiving a response from the health check, in milliseconds.
      • unhealthyThreshold

        public final Integer unhealthyThreshold()

        The number of consecutive failed health checks that must occur before declaring a virtual gateway unhealthy.

        Returns:
        The number of consecutive failed health checks that must occur before declaring a virtual gateway unhealthy.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)