Package

net.liftmodules

amqp

Permalink

package amqp

Visibility
  1. Public
  2. All

Type Members

  1. case class AMQPAddListener(a: LiftActor) extends Product with Serializable

    Permalink

    a

    The actor to add as a Listener to this Dispatcher.

  2. abstract class AMQPDispatcher[T] extends LiftActor

    Permalink

    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

  3. case class AMQPMessage[T](message: T) extends Product with Serializable

    Permalink

    message

    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.

  4. case class AMQPReconnect(delay: Long) extends Product with Serializable

    Permalink

    Reconnect to the AMQP Server after a delay of delay milliseconds.

    Reconnect to the AMQP Server after a delay of delay milliseconds.

  5. abstract class AMQPSender[T] extends LiftActor

    Permalink

    An actor with a long-lived connection to an AMQP exchange/queue.

    An actor with a long-lived connection to an AMQP exchange/queue.

    See also

    ExampleStringAMQPSender for an example use.

  6. class ExampleSerializedAMQPDispatcher[T] extends AMQPDispatcher[T]

    Permalink

    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.

  7. class ExampleStringAMQPListener extends AnyRef

    Permalink

    Example class that accepts Strings coming in from the ExampleSerializedAMQPDispatcher.

  8. class ExampleStringAMQPSender extends AnyRef

    Permalink

    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?

  9. class SerializedConsumer[T] extends DefaultConsumer

    Permalink

    Example consumer on an AMQP channel.

  10. class StringAMQPSender extends AMQPSender[String]

    Permalink

    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.

Value Members

  1. object AMQPExampleFunPack

    Permalink

    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.

  2. object ExampleDirectAMQPSender

    Permalink

    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.

Ungrouped