public function setServiceSettings($serviceName, $maxFailures, $retryTimeout) {
        $this->settings[$serviceName] = array(
            'maxFailures' => $maxFailures ? $maxFailures : $this->defaultMaxFailures,
            'retryTimeout' => $retryTimeout ? $retryTimeout : $this->defaultRetryTimeout,
        );
        return $this;
    }