Package

eu.shiftforward.adstax

util

Permalink

package util

Visibility
  1. Public
  2. All

Type Members

  1. trait BaseRmqProducerStashActor extends Actor with Stash

    Permalink

    A trait that extends a rmq publisher and implements a common pattern where all received messages are stashed until the underlying producer is created and connected.

    A trait that extends a rmq publisher and implements a common pattern where all received messages are stashed until the underlying producer is created and connected.

    Mixing in this class requires defining the producerConnected method that should contain all the logic of publishing to rmq and can assume all is ready for publishing, as well as defining the setupRmq method which should create the producer actor. Another aspect of using this trait is that instead of using "context.become(newReceive)", one should use "stashedContextBecome(newReceive)" so that producer disconnected handling behaviour is not lost while changing context.

  2. trait RabbitMQUtilAsync extends AnyRef

    Permalink

    Inheriting from this trait provides useful methods to interact with RabbitMQ using akka Actors.

  3. trait RmqRpcJsonClient extends RabbitMQUtilAsync

    Permalink

    This trait abstracts the creation and communication logic of a Rpc client.

  4. trait RmqRpcJsonClientTypeDescriptor[Req, Resp] extends AnyRef

    Permalink

    Describes the evidence of the expected response type from a given request

    Describes the evidence of the expected response type from a given request

    Req

    the type of the request message with a JsonWriter

    Resp

    the response type that the callback returns

  5. trait RmqRpcJsonTypeRoutingKey[Req] extends AnyRef

    Permalink

    The Json Routing Key for a specific type.

    The Json Routing Key for a specific type.

    Req

    the type which the routing key refers to

Ungrouped