public function setDelay($delay)
    {
        if (is_string($delay) && ctype_digit($delay)) {
            $delay = (int) $delay;
        } elseif (!is_int($delay)) {
            throw new \RuntimeException('Delay should be an integer in MS.');
        }

        $this->delay = $delay;

        return $this;
    }