public function setRetryFactor($factor)
    {
        if (!(is_int($factor) || is_float($factor)) || $factor < 1) {
            throw new \Plop\Exception('Invalid value');
        }
        $this->retryFactor = $factor;
        return $this;
    }