itk_queue v0.11.3 ITKQueue.Channel View Source
Provides methods for interacting with AMQP channels.
Link to this section Summary
Functions
Declares a queue and binds the routing key to it on the given channel. This sets up a queue so that messages sent with the routing key get directed to the queue
Closes a channel
Declares a queue
Deletes a queue
Opens a topic channel on the given connection
Opens a topic channel on the given connection, and activate confirm
Link to this section Functions
bind( channel :: AMQP.Channel.t(), queue_name :: String.t(), routing_key :: String.t(), options :: Keyword.t() ) :: AMQP.Channel.t()
Declares a queue and binds the routing key to it on the given channel. This sets up a queue so that messages sent with the routing key get directed to the queue.
Returns the given AMQP.Channel
.
Closes a channel.
declare_queue( channel :: AMQP.Channel.t(), queue_name :: String.t(), options :: Keyword.t() ) :: AMQP.Channel.t()
Declares a queue.
delete_queue(channel :: AMQP.Channel.t(), queue_name :: String.t()) :: AMQP.Channel.t()
Deletes a queue.
open(connection :: AMQP.Connection.t()) :: AMQP.Channel.t()
Opens a topic channel on the given connection.
Returns an AMQP.Channel
.
open_for_publish(connection :: AMQP.Connection.t(), handler :: pid()) :: AMQP.Channel.t()
Opens a topic channel on the given connection, and activate confirm.
Returns an AMQP.Channel
.