Creates a producer.
Creates a producer. When the broker has a connection to the channel, the handler actor will be notified that the producer is connected.
the actor to handle the channel state; it can receive the messages com.github.sstone.amqp.ChannelOwner.Disconnected, com.github.sstone.amqp.ChannelOwner.Connected or a com.github.sstone.amqp.Amqp.Error.
the actor ref of the producer
Create a rpc client
Create a rpc client
the actor to handle the channel state; it can receive the messages
the rpc client actor ref
Setup a RpcServer asynchronously.
Setup a RpcServer asynchronously. When the broker has a connection to the channel, the exchange and queues are declared and then it will start to process incoming messages.
The queue name can be None to create a One-To-Many (all servers/processors handle the request) or specified for a One-To-Any (only one server/processor will handle the request).
the exchange name
the routing key
the queue name
the actor to handle the channel state; it can receive the messages com.github.sstone.amqp.ChannelOwner.Disconnected, com.github.sstone.amqp.ChannelOwner.Connected or a com.github.sstone.amqp.Amqp.Error.
an optional message timeout to avoid filling up the queue with old, already ignored, responses
the function that processes an Delivery
the implicit execution context
the future with the queue name
Creates a producer which stashes messages until the producer is fully connected to AMQP.
Creates a producer which stashes messages until the producer is fully connected to AMQP.
the actor ref of the producer proxy.
Declare an exchange asynchronously.
Declare an exchange asynchronously. When the broker has a connection to the channel, the exchange will be declared.
the exchange name
the exchange type
the actor to handle the channel state; it can receive the messages com.github.sstone.amqp.ChannelOwner.Disconnected, com.github.sstone.amqp.ChannelOwner.Connected or a com.github.sstone.amqp.Amqp.Error.
the future that completes this exchange declaration
Declare a queue asynchronously.
Declare a queue asynchronously. When the broker has a connection to the channel, the queue will be declared.
the exchange name
the routing key
the queue name, pass None to generate one randomly
the actor to handle the channel state; it can receive the messages com.github.sstone.amqp.ChannelOwner.Disconnected, com.github.sstone.amqp.ChannelOwner.Connected or a com.github.sstone.amqp.Amqp.Error.
true if the queue will be read by an external client
the future with the queue name
Bind a specific queue to a given actor asynchronously.
Bind a specific queue to a given actor asynchronously. When the broker has a connection to the channel, the queue is declared and bound to the given actor.
the actor which will listen to the queue
the exchange name
the routing key
the queue name, pass None to generate one randomly
if true, the queue will be destroyed when it is no longer used
the actor to handle the channel state; it can receive the messages com.github.sstone.amqp.ChannelOwner.Disconnected, com.github.sstone.amqp.ChannelOwner.Connected or a com.github.sstone.amqp.Amqp.Error.
true if the queue will be read by an external client
the future with the consumer actor and the queue name
Bind a specific queue to a given actor asynchronously.
Bind a specific queue to a given actor asynchronously. When the broker has a connection to the channel, the queue is declared and bound to the given actor.
the actor which will listen to the queue
the exchange name
the routing key
the queue name, pass None to generate one randomly
if true, the queue will be destroyed when it is no longer used
the actor to handle the channel state; it can receive the messages com.github.sstone.amqp.ChannelOwner.Disconnected, com.github.sstone.amqp.ChannelOwner.Connected or a com.github.sstone.amqp.Amqp.Error.
true if the queue will be read by an external client
the future with the queue name
Inheriting from this trait provides useful methods to interact with RabbitMQ using akka Actors.
(Since version 0.3.0) Classes mixing in RabbitMQUtilAsync should instead use an AmqpClient instance