roger v1.4.1 Roger.AMQPClient View Source

Worker process which holds the AMQP connection.

Link to this section Summary

Functions

Closes the AMQP connection

Open a channel to RabbitMQ and return it. This also links the calling process to the connection

Publishes a message to RabbitMQ

Starts the client and connects to RabbitMQ

Link to this section Functions

Closes the AMQP connection.

This will cause all running Roger partitions to shut down. They will be retried until the connection comes up again.

Open a channel to RabbitMQ and return it. This also links the calling process to the connection.

Link to this function publish(exchange, routing_key, payload, opts \\ []) View Source

Publishes a message to RabbitMQ.

The AMQP client automatically opens a single channel dedicated for sending messages.

Starts the client and connects to RabbitMQ.