Packages

c

akka.camel

ActorRouteDefinition

class ActorRouteDefinition[T <: ProcessorDefinition[T]] extends AnyRef

Wraps a org.apache.camel.model.ProcessorDefinition. There is an implicit conversion in the akka.camel package object that converts a ProcessorDefinition into this type. Because of this conversion, it is possible to use an akka.actor.ActorRef as a to parameter in building a route:

class TestRoute(system: ActorSystem) extends RouteBuilder {
  val responder = system.actorOf(Props[TestResponder], name = "TestResponder")

  def configure {
    from("direct:producer").to(responder)
  }
}
Source
ActorRouteDefinition.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ActorRouteDefinition
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ActorRouteDefinition(definition: ProcessorDefinition[T])

    definition

    the processor definition

Value Members

  1. def to(actorRef: ActorRef, autoAck: Boolean, replyTimeout: Duration): T

    Sends the message to an ActorRef endpoint

    Sends the message to an ActorRef endpoint

    actorRef

    the consumer

    autoAck

    Determines whether one-way communications between an endpoint and this consumer actor should be auto-acknowledged or application-acknowledged. This flag has only effect when exchange is in-only.

    replyTimeout

    When endpoint is out-capable (can produce responses) replyTimeout is the maximum time the endpoint can take to send the response before the message exchange fails. It defaults to 1 minute. This setting is used for out-capable, in-only, manually acknowledged communication.

    returns

    the path to the actor, as a camel uri String

  2. def to(actorRef: ActorRef): T

    Sends the message to an ActorRef endpoint.

    Sends the message to an ActorRef endpoint.

    actorRef

    the actorRef to the actor.

    returns

    the path to the actor, as a camel uri String