itk_queue v0.11.3 ITKQueue.Connection View Source

Manages a connection to AMQP.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor

Handles request to get AMQP connection managed by this GenServer. This call will block when we are trying to reconnect, this is not recommended practice, but changing this will cause a larger scope of change

Handles termination of this GenServer

Link to this section Types

Link to this type t() View Source
t() :: %ITKQueue.Connection{
  connection: %AMQP.Connection{pid: pid()},
  params: Keyword.t(),
  reconnect: boolean()
}

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function handle_call(msg, from, state) View Source

Handles request to get AMQP connection managed by this GenServer. This call will block when we are trying to reconnect, this is not recommended practice, but changing this will cause a larger scope of change.

Handles termination of this GenServer.