AMQPX v1.0.0 AMQPX.ConnectionPool View Source

A pool of connections for shared use.

AMQPX encourages using multiple channels per TCP connection instead of multiple connections, wherever possible. AMQPX.ConnectionPool stores open connections that other modules can retrieve from it.

Configuration

config :ulfnet_amqpx, connections: %{name => url}

Link to this section Summary

Functions

Fetch a connection by its name

Register a connection config outside of sys.config

Link to this section Functions

Link to this function get(name, timeout \\ :infinity) View Source
get(name :: atom(), timeout :: integer() | :infinity) ::
  {:ok, AMQP.Connection.t()} | {:error, reason :: any()}

Fetch a connection by its name.

Link to this function register(name, url) View Source
register(name :: atom(), url :: any()) :: any()

Register a connection config outside of sys.config.