lapin v0.1.1 Lapin.Pattern behaviour
Extensible behaviour to define pattern modules.
Lapin provides a number of submodules which impelment the patterns found in the RabbitMQ Tutorials.
defmodule MyApp.SomePatter do
use Lapin.Pattern
[... callbacks implementation ...]
end
Link to this section Summary
Callbacks
Consumer acknowledgements enabled
Consumer message prefetch count
Declare exchange durable
Declare exchange type
Request publisher confirms (RabbitMQ only)
Request message mandatory routing when publishing
Request message persistence when publishing
Declare queue arguments
Declare queue durable
Bind queue to routing_key
Link to this section Types
Consumer Prefetch
Consumer Tag
Exchange name
Queue name
Queue Arguments
Routing key
Link to this section Callbacks
consumer_ack(channel_config :: Lapin.Connection.channel_config) :: boolean
Consumer acknowledgements enabled
consumer_prefetch(channel_config :: Lapin.Connection.channel_config) :: consumer_prefetch
Consumer message prefetch count
exchange_durable(channel_config :: Lapin.Connection.channel_config) :: boolean
Declare exchange durable
exchange_type(channel_config :: Lapin.Connection.channel_config) :: boolean
Declare exchange type
publisher_confirm(channel_config :: Lapin.Connection.channel_config) :: boolean
Request publisher confirms (RabbitMQ only)
publisher_mandatory(channel_config :: Lapin.Connection.channel_config) :: boolean
Request message mandatory routing when publishing
publisher_persistent(channel_config :: Lapin.Connection.channel_config) :: boolean
Request message persistence when publishing
queue_arguments(channel_config :: Lapin.Connection.channel_config) :: queue_arguments
Declare queue arguments
queue_durable(channel_config :: Lapin.Connection.channel_config) :: boolean
Declare queue durable
routing_key(channel_config :: Lapin.Connection.channel_config) :: routing_key
Bind queue to routing_key