Interface ServiceDeploymentCircuitBreaker.Builder

    • Method Detail

      • failureCount

        ServiceDeploymentCircuitBreaker.Builder failureCount​(Integer failureCount)

        The number of times the circuit breaker detected a service deploymeny failure.

        Parameters:
        failureCount - The number of times the circuit breaker detected a service deploymeny failure.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • threshold

        ServiceDeploymentCircuitBreaker.Builder threshold​(Integer threshold)

        The threshhold which determines that the service deployment failed.

        The deployment circuit breaker calculates the threshold value, and then uses the value to determine when to move the deployment to a FAILED state. The deployment circuit breaker has a minimum threshold of 3 and a maximum threshold of 200. and uses the values in the following formula to determine the deployment failure.

        0.5 * desired task count

        Parameters:
        threshold - The threshhold which determines that the service deployment failed.

        The deployment circuit breaker calculates the threshold value, and then uses the value to determine when to move the deployment to a FAILED state. The deployment circuit breaker has a minimum threshold of 3 and a maximum threshold of 200. and uses the values in the following formula to determine the deployment failure.

        0.5 * desired task count

        Returns:
        Returns a reference to this object so that method calls can be chained together.