public function setMaximumRetryDelay($max)
    {
        if (!(is_int($max) || is_float($max)) || $max < 0) {
            throw new \Plop\Exception('Invalid value');
        }
        $this->retryMax = $max;
        return $this;
    }