View Source GenericListener behaviour (reactive_commons v1.0.2)

Implements generic behaviour for event listeners

Summary

Callbacks

Create resource topology.

Get initial state.

Evaluate if should listen for this kind of events.

Callbacks

@callback create_topology(AMQP.Channel.t(), map()) :: {:ok, term()} | {:error, term()}

Create resource topology.

@callback initial_state() :: map()

Get initial state.

@callback should_listen() :: boolean()

Evaluate if should listen for this kind of events.

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