The ActorRef factory, such as an ActorSystem or ActorContext, used to create the actors needed for tracking.
The number of worker actors to instantiate.
The number of worker actors to instantiate. The instantiated workers will process events in parallel.
A Props encapsulating the creation of worker actors.
A Props encapsulating the creation of worker actors. The actor should be able to receive and process JSON events
in the form of spray.json.JsValue objects.
The tracking configuration.
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 the rmq.
Creates a producer which stashes messages until the producer is fully connected to the rmq.
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
Base trait containing functionality for consuming tracking events from an AdStax Event Tracker instance. The processing step is defined by a
Propswhich creates worker actors able to process JSON events. The trait also allows configuring the number of workers to instantiate, providing support for parallel consuming of events.