Interface OutlierDetection.Builder

    • Method Detail

      • baseEjectionDuration

        OutlierDetection.Builder baseEjectionDuration​(Duration baseEjectionDuration)

        The base amount of time for which a host is ejected.

        Parameters:
        baseEjectionDuration - The base amount of time for which a host is ejected.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • interval

        OutlierDetection.Builder interval​(Duration interval)

        The time interval between ejection sweep analysis.

        Parameters:
        interval - The time interval between ejection sweep analysis.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • maxEjectionPercent

        OutlierDetection.Builder maxEjectionPercent​(Integer maxEjectionPercent)

        Maximum percentage of hosts in load balancing pool for upstream service that can be ejected. Will eject at least one host regardless of the value.

        Parameters:
        maxEjectionPercent - Maximum percentage of hosts in load balancing pool for upstream service that can be ejected. Will eject at least one host regardless of the value.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • maxServerErrors

        OutlierDetection.Builder maxServerErrors​(Long maxServerErrors)

        Number of consecutive 5xx errors required for ejection.

        Parameters:
        maxServerErrors - Number of consecutive 5xx errors required for ejection.
        Returns:
        Returns a reference to this object so that method calls can be chained together.