public static function heartbeatTimedOut(
        ConnectionOptions $options,
        $heartbeatInterval,
        \Exception $previous = null
    )
    {
        return new self(
            sprintf(
                'The AMQP connection with broker [%s:%d] has timed out, '
                . 'the last heartbeat was received over %d seconds ago.',
                $options->getHost(),
                $options->getPort(),
                $heartbeatInterval
            ),
            0,
            $previous
        );
    }
public static function heartbeatTimedOut(
        ConnectionOptions $options,
        $heartbeatInterval,
        \Exception $previous = null
    )
    {
        return new self(
            sprintf(
                'The AMQP connection with broker [%s:%d] has timed out, '
                . 'the last heartbeat was received over %d seconds ago.',
                $options->getHost(),
                $options->getPort(),
                $heartbeatInterval
            ),
            0,
            $previous
        );
    }
public static function heartbeatTimedOut ( ConnectionOptions $ options , $ heartbeatInterval , \ Exception $ previous = null ) { return new self ( sprintf ( 'The AMQP connection with broker [%s:%d] has timed out, ' . 'the last heartbeat was received over %d seconds ago.' , $ options -> getHost ( ) , $ options -> getPort ( ) , $ heartbeatInterval ) , 0 , $ previous ) ; }
Create an exception that indicates that the broker has failed to send
any data for a period longer than the heartbeat interval.

@param ConnectionOptions $options The options used when establishing the connection.
@param int $heartbeatInterval The heartbeat interval negotiated during the AMQP handshake.
@param \Exception|null $previous The exception that caused this exception, if any.
@return AMQPConnectionException
Create an exception that indicates that the broker has failed to send any data for a period longer than the heartbeat interval .