Class ProbeSettings


  • public final class ProbeSettings
    extends Object
    Deployment container liveness/readiness probe configuration.
    • Constructor Detail

      • ProbeSettings

        public ProbeSettings()
    • Method Detail

      • failureThreshold

        public Integer failureThreshold()
        Get the failureThreshold property: The number of failures to allow before returning an unhealthy status.
        Returns:
        the failureThreshold value.
      • withFailureThreshold

        public ProbeSettings withFailureThreshold​(Integer failureThreshold)
        Set the failureThreshold property: The number of failures to allow before returning an unhealthy status.
        Parameters:
        failureThreshold - the failureThreshold value to set.
        Returns:
        the ProbeSettings object itself.
      • initialDelay

        public Duration initialDelay()
        Get the initialDelay property: The delay before the first probe in ISO 8601 format.
        Returns:
        the initialDelay value.
      • withInitialDelay

        public ProbeSettings withInitialDelay​(Duration initialDelay)
        Set the initialDelay property: The delay before the first probe in ISO 8601 format.
        Parameters:
        initialDelay - the initialDelay value to set.
        Returns:
        the ProbeSettings object itself.
      • period

        public Duration period()
        Get the period property: The length of time between probes in ISO 8601 format.
        Returns:
        the period value.
      • withPeriod

        public ProbeSettings withPeriod​(Duration period)
        Set the period property: The length of time between probes in ISO 8601 format.
        Parameters:
        period - the period value to set.
        Returns:
        the ProbeSettings object itself.
      • successThreshold

        public Integer successThreshold()
        Get the successThreshold property: The number of successful probes before returning a healthy status.
        Returns:
        the successThreshold value.
      • withSuccessThreshold

        public ProbeSettings withSuccessThreshold​(Integer successThreshold)
        Set the successThreshold property: The number of successful probes before returning a healthy status.
        Parameters:
        successThreshold - the successThreshold value to set.
        Returns:
        the ProbeSettings object itself.
      • timeout

        public Duration timeout()
        Get the timeout property: The probe timeout in ISO 8601 format.
        Returns:
        the timeout value.
      • withTimeout

        public ProbeSettings withTimeout​(Duration timeout)
        Set the timeout property: The probe timeout in ISO 8601 format.
        Parameters:
        timeout - the timeout value to set.
        Returns:
        the ProbeSettings object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.