Connection

class amqpstorm.UriConnection(uri, lazy=False)

Create a new Connection instance using an AMQP Uri string.

Usage:

UriConnect(‘amqp://guest:guest@localhost:5672/%2F?heartbeat=60’)

UriConnect(‘amqps://guest:guest@localhost:5671/%2F?heartbeat=60’)

class amqpstorm.Connection(hostname, username, password, port=5672, **kwargs)

RabbitMQ Connection.

channel(rpc_timeout=60, lazy=False)

Open Channel.

Parameters:

rpc_timeout (int) – Timeout before we give up waiting for an RPC response from the server.

Raises:
check_for_errors()

Check Connection for errors.

Raises:AMQPConnectionError – Raises if the connection encountered an error.
Returns:
close()

Close connection.

Raises:AMQPConnectionError – Raises if the connection encountered an error.
Returns:
fileno

Returns the Socket File number.

Returns:
is_blocked

Is the connection currently being blocked from publishing by the remote server.

Return type:bool
open()

Open Connection.

Raises:AMQPConnectionError – Raises if the connection encountered an error.
server_properties

Returns the RabbitMQ Server Properties.

Return type:dict
socket

Returns an instance of the Socket used by the Connection.

Return type:socket