View Source ExRabbitPool.Clients.Adapter behaviour (current_rabbit_pool v1.1.1)

Link to this section Summary

Link to this section Callbacks

@callback ack(AMQP.Channel.t(), String.t(), keyword()) :: :ok | AMQP.Basic.error()
Link to this callback

cancel_consume(t, t, keyword)

View Source
@callback cancel_consume(AMQP.Channel.t(), String.t(), keyword()) ::
  {:ok, String.t()} | {:error, AMQP.Basic.error()}
@callback close_channel(AMQP.Channel.t() | pid()) :: :ok | {:error, AMQP.Basic.error()}
@callback close_connection(AMQP.Connection.t()) :: :ok | {:error, any()}
Link to this callback

consume(t, t, arg3, keyword)

View Source
@callback consume(AMQP.Channel.t(), String.t(), pid() | nil, keyword()) ::
  {:ok, String.t()} | AMQP.Basic.error()
Link to this callback

declare_exchange(t, exchange, keyword)

View Source
@callback declare_exchange(AMQP.Channel.t(), AMQP.Basic.exchange(), keyword()) ::
  :ok | AMQP.Basic.error()
Link to this callback

declare_queue(t, queue, keyword)

View Source
@callback declare_queue(AMQP.Channel.t(), AMQP.Basic.queue(), keyword()) ::
  {:ok, map()} | AMQP.Basic.error()
@callback open_channel(AMQP.Connection.t()) ::
  {:ok, AMQP.Channel.t()} | {:error, any()} | any()
@callback open_connection(keyword() | String.t()) ::
  {:ok, AMQP.Connection.t()} | {:error, any()}
Link to this callback

publish(t, t, t, t, keyword)

View Source
@callback publish(AMQP.Channel.t(), String.t(), String.t(), String.t(), keyword()) ::
  :ok | AMQP.Basic.error()
@callback qos(
  AMQP.Channel.t(),
  keyword()
) :: :ok | AMQP.Basic.error()
Link to this callback

queue_bind(t, queue, exchange, keyword)

View Source
@callback queue_bind(
  AMQP.Channel.t(),
  AMQP.Basic.queue(),
  AMQP.Basic.exchange(),
  keyword()
) ::
  :ok | AMQP.Basic.error()
@callback reject(AMQP.Channel.t(), String.t(), keyword()) :: :ok | AMQP.Basic.error()