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

Types

Consumer Prefetch

Consumer Tag

Exchange name

Queue name

Queue Arguments

Routing key

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

Link to this type consumer_prefetch()
consumer_prefetch() :: Integer.t | nil

Consumer Prefetch

Link to this type consumer_tag()
consumer_tag() :: String.t

Consumer Tag

Link to this type exchange()
exchange() :: String.t

Exchange name

Link to this type queue()
queue() :: String.t

Queue name

Link to this type queue_arguments()
queue_arguments() :: [{String.t, atom, String.t}]

Queue Arguments

Link to this type routing_key()
routing_key() :: String

Routing key

Link to this section Callbacks

Link to this callback consumer_ack(channel_config)
consumer_ack(channel_config :: Lapin.Connection.channel_config) :: boolean

Consumer acknowledgements enabled

Link to this callback consumer_prefetch(channel_config)
consumer_prefetch(channel_config :: Lapin.Connection.channel_config) :: consumer_prefetch

Consumer message prefetch count

Link to this callback exchange_durable(channel_config)
exchange_durable(channel_config :: Lapin.Connection.channel_config) :: boolean

Declare exchange durable

Link to this callback exchange_type(channel_config)
exchange_type(channel_config :: Lapin.Connection.channel_config) :: boolean

Declare exchange type

Link to this callback publisher_confirm(channel_config)
publisher_confirm(channel_config :: Lapin.Connection.channel_config) :: boolean

Request publisher confirms (RabbitMQ only)

Link to this callback publisher_mandatory(channel_config)
publisher_mandatory(channel_config :: Lapin.Connection.channel_config) :: boolean

Request message mandatory routing when publishing

Link to this callback publisher_persistent(channel_config)
publisher_persistent(channel_config :: Lapin.Connection.channel_config) :: boolean

Request message persistence when publishing

Link to this callback queue_arguments(channel_config)
queue_arguments(channel_config :: Lapin.Connection.channel_config) :: queue_arguments

Declare queue arguments

Link to this callback queue_durable(channel_config)
queue_durable(channel_config :: Lapin.Connection.channel_config) :: boolean

Declare queue durable

Link to this callback routing_key(channel_config)
routing_key(channel_config :: Lapin.Connection.channel_config) :: routing_key

Bind queue to routing_key