Boltun.CallbacksAgent

Stores the callback to be executed by a listener. The functions defined here should only be invoked by a listener, since it also takes care of sending the LISTEN/UNLISTEN commands to the connection.

Summary

add_to_channel(agent, channel, value)

Adds a callback for the given channel

callbacks_for_channel(agent, channel)

Returns all callbacks for the given channel

channels(agent)

Returns the list of channels to monitor

remove_channel(agent, channel)

Removes all callbacks for the given channel

start_link(initial_callbacks, opts)

Starts the callback agent

Functions

add_to_channel(agent, channel, value)

Adds a callback for the given channel

callbacks_for_channel(agent, channel)

Returns all callbacks for the given channel

channels(agent)

Returns the list of channels to monitor

remove_channel(agent, channel)

Removes all callbacks for the given channel

start_link(initial_callbacks, opts)

Starts the callback agent