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;
    }
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;
    }
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 ; }
Defines how long the client should wait for the AlphaRPC instances
to respond. If the time is reached the next AlphaRPC instance will be
asked to execute the request.

@param integer $delay

@return Client
@throws \RuntimeException
Defines how long the client should wait for the AlphaRPC instances to respond . If the time is reached the next AlphaRPC instance will be asked to execute the request .