GenericListener behaviour (reactive_commons v0.7.1) View Source

Implements generic behaviour for event listeners

Link to this section Summary

Callbacks

Create resource topology.

Get initial state.

Evaluate if should listen for this kind of events.

Link to this section Callbacks

Specs

create_topology(AMQP.Channel.t()) :: atom()

Create resource topology.

Specs

initial_state() :: map()

Get initial state.

Specs

should_listen() :: boolean()

Evaluate if should listen for this kind of events.

Link to this section Functions

Link to this function

declare_dlq(chan, origin_queue, retry_target, retry_time)

View Source
Link to this function

get_correlation_id(props)

View Source