Amqpx.Gen.Consumer behaviour (amqpx v5.5.0)

Generic implementation of amqp consumer

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Link to this section Types

Specs

state() :: %Amqpx.Gen.Consumer{
  backoff: term(),
  channel: term(),
  handler_module: term(),
  handler_state: term(),
  prefetch_count: term()
}

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Callback implementation for GenServer.init/1.

Link to this function

start_link(opts)

Link to this section Callbacks

Link to this callback

handle_message(any, map, map)

Specs

handle_message(any(), map(), map()) :: {:ok, map()} | {:error, any()}

Specs

setup(Amqpx.Channel.t()) :: {:ok, map()} | {:error, any()}