public function setServiceSettings($serviceName, $maxFailures, $retryTimeout) {
        $this->settings[$serviceName] = array(
            'maxFailures' => $maxFailures ? $maxFailures : $this->defaultMaxFailures,
            'retryTimeout' => $retryTimeout ? $retryTimeout : $this->defaultRetryTimeout,
        );
        return $this;
    }
public function setServiceSettings($serviceName, $maxFailures, $retryTimeout) {
        $this->settings[$serviceName] = array(
            'maxFailures' => $maxFailures ? $maxFailures : $this->defaultMaxFailures,
            'retryTimeout' => $retryTimeout ? $retryTimeout : $this->defaultRetryTimeout,
        );
        return $this;
    }
public function setServiceSettings ( $ serviceName , $ maxFailures , $ retryTimeout ) { $ this -> settings [ $ serviceName ] = array ( 'maxFailures' => $ maxFailures ? $ maxFailures : $ this -> defaultMaxFailures , 'retryTimeout' => $ retryTimeout ? $ retryTimeout : $ this -> defaultRetryTimeout , ) ; return $ this ; }
Use this method only if you want to add server specific threshold and retry timeout.

@param StorageInterface $storage      storage implementation
@param int              $maxFailures  default threshold, if service fails this many times will be disabled
@param int              $retryTimeout how many seconds should we wait before retry
@return CircuitBreaker
Use this method only if you want to add server specific threshold and retry timeout .