Exchange v0.2.1 Exchange.Adapters.RabbitBus.Consumer View Source

This module is a server and consumer of events. This server handles the addition and removal of listener processes. It consumes messages from a RabbitMQ queue, decodes the message and then the message is broadcasted to every listener. This module manages the necessary resources to use the RabbitMQ

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Adds a subscriber of event

Callback implementation for GenServer.init/1.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

handle_call(msg, arg2, state)

View Source

Adds a subscriber of event

Callback implementation for GenServer.init/1.