Yggdrasil for RabbitMQ v5.0.2 Yggdrasil.RabbitMQ.Channel View Source

This module defines a supervised RabbitMQ channel.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Gets the RabbitMQ channel for a supervised channel.

Starts a supervised channel for a client. Optionally, you can add GenServer options.

Stops a supervised channel. Optionally, receives a stop reason (defaults to :normal) and a timeout in milliseconds (defaults to :infinity).

Subscribes to the channel given a client.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

get(channel)

View Source
get(GenServer.server()) :: {:ok, AMQP.Channel.t()} | {:error, term()}

Gets the RabbitMQ channel for a supervised channel.

Starts a supervised channel for a client. Optionally, you can add GenServer options.

Link to this function

stop(channel, reason \\ :normal, timeout \\ :infinity)

View Source
stop(GenServer.server(), term(), :infinity | non_neg_integer()) :: :ok

Stops a supervised channel. Optionally, receives a stop reason (defaults to :normal) and a timeout in milliseconds (defaults to :infinity).

Subscribes to the channel given a client.