An actor that serves as an endpoint for AMQP messages of serialized type T coming into a specific queue/exchange.
An actor that serves as an endpoint for AMQP messages of serialized type T coming into a specific queue/exchange.
To listen for messages coming into that queue/exchange, send this actor an AMQPAddListener message.
For each message containing a value of type T, all listeners will be send an AMQPMessage contaning that value.
See also Enterprise Integration Patterns pp. 508-514
A deserialized value received via AMQP. Messages received from AMQP are wrapped in this case class. When you register a listener, this is the case class that you will be matching on.
Reconnect to the AMQP Server after a delay of delay
milliseconds.
Reconnect to the AMQP Server after a delay of delay
milliseconds.
An actor with a long-lived connection to an AMQP exchange/queue.
An actor with a long-lived connection to an AMQP exchange/queue.
ExampleStringAMQPSender for an example use.
Example Dispatcher that listens on an example queue and exchange.
Example Dispatcher that listens on an example queue and exchange. Use this as your guiding example for creating your own Dispatcher.
Example class that accepts Strings coming in from the ExampleSerializedAMQPDispatcher.
An Example of how to use the Example subclass of AMQPSender[T].
An Example of how to use the Example subclass of AMQPSender[T]. Still following?
Example consumer on an AMQP channel.
An example subclass of AMQPSender[T]
An example subclass of AMQPSender[T]
An example of how to send messages to an AMQP queue/exchange. Notice that this is setup with the same params as StringAQMPExample. After making a new instance of StringAMQPExample, just send ExampleAMQPSender ! "hi" to see the message "hi" appear in the output log. Fun and Easy!
If you are planning to send lots of messages to lots of different exchange/queues, consider creating Actor-based Senders, that will help your application to scale.
Just a few examples of how you might test this.
Just a few examples of how you might test this. Mostly useful snippets for me to run from script/console to see the bits flying.
An example of using AMQP in a short-lived manner, setting up and tearing down the connection whenever you need it.
An example of using AMQP in a short-lived manner, setting up and tearing down the connection whenever you need it. The long-lived example above is more efficient with resources.
The actor to add as a Listener to this Dispatcher.