TaskBunny v0.0.1-dev.6 TaskBunny.Connection
A GenServer to handle RabbitMQ connection. If it fails to connect to the host, it will retry every 5 seconds.
The module also provides funcitons to access RabbitMQ connections.
Summary
Functions
Gets a RabbitMQ connection for the given host. Returns nil when the connection is not available
Similar to get_connection/1
but raises an error when connection is not ready
Initialises GenServer. Send a request to establish a connection
Asks server to send the connection back asynchronously. Once connection has been established, it will send a message with {:connected, connection} to the given process
Starts a GenServer process linked to the cunnrent process
Types
Functions
Gets a RabbitMQ connection for the given host. Returns nil when the connection is not available.
Similar to get_connection/1
but raises an error when connection is not ready.
Initialises GenServer. Send a request to establish a connection.
Asks server to send the connection back asynchronously. Once connection has been established, it will send a message with {:connected, connection} to the given process.
Returns :ok when the server exists. Returns :error when the server doesn’t exist.
Starts a GenServer process linked to the cunnrent process.