lapin v0.4.0 Lapin.Pattern behaviour View Source
Extensible behaviour to define pattern modules.
Lapin provides a number of submodules which impelment the patterns found in the RabbitMQ Tutorials.
defmodule ExampleApp.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
t()
View Source
t() :: Lapin.Pattern
t() :: Lapin.Pattern
Lapin Pattern Behaviour
Link to this section Callbacks
consumer_ack(channel)
View Source
consumer_ack(channel :: Lapin.Channel.t()) :: boolean()
consumer_ack(channel :: Lapin.Channel.t()) :: boolean()
Consumer acknowledgements enabled
consumer_prefetch(channel)
View Source
consumer_prefetch(channel :: Lapin.Channel.t()) ::
Lapin.Channel.consumer_prefetch()
consumer_prefetch(channel :: Lapin.Channel.t()) :: Lapin.Channel.consumer_prefetch()
Consumer message prefetch count
exchange_durable(channel)
View Source
exchange_durable(channel :: Lapin.Channel.t()) :: boolean()
exchange_durable(channel :: Lapin.Channel.t()) :: boolean()
Declare exchange durable
exchange_type(channel)
View Source
exchange_type(channel :: Lapin.Channel.t()) :: boolean()
exchange_type(channel :: Lapin.Channel.t()) :: boolean()
Declare exchange type
publisher_confirm(channel)
View Source
publisher_confirm(channel :: Lapin.Channel.t()) :: boolean()
publisher_confirm(channel :: Lapin.Channel.t()) :: boolean()
Request publisher confirms (RabbitMQ only)
publisher_mandatory(channel)
View Source
publisher_mandatory(channel :: Lapin.Channel.t()) :: boolean()
publisher_mandatory(channel :: Lapin.Channel.t()) :: boolean()
Request message mandatory routing when publishing
publisher_persistent(channel)
View Source
publisher_persistent(channel :: Lapin.Channel.t()) :: boolean()
publisher_persistent(channel :: Lapin.Channel.t()) :: boolean()
Request message persistence when publishing
queue_arguments(channel)
View Source
queue_arguments(channel :: Lapin.Channel.t()) :: Lapin.Channel.queue_arguments()
queue_arguments(channel :: Lapin.Channel.t()) :: Lapin.Channel.queue_arguments()
Declare queue arguments
queue_durable(channel)
View Source
queue_durable(channel :: Lapin.Channel.t()) :: boolean()
queue_durable(channel :: Lapin.Channel.t()) :: boolean()
Declare queue durable
routing_key(channel)
View Source
routing_key(channel :: Lapin.Channel.t()) :: Lapin.Channel.routing_key()
routing_key(channel :: Lapin.Channel.t()) :: Lapin.Channel.routing_key()
Bind queue to routing_key