public private static class ProducerSupport.ProducerChild extends java.lang.Object implements Actor
Actor.emptyBehavior$, Actor.ignoringBehavior$| Constructor and Description |
|---|
ProducerChild(org.apache.camel.Endpoint endpoint,
org.apache.camel.processor.SendProcessor processor) |
| Modifier and Type | Method and Description |
|---|---|
ActorContext |
context()
Stores the context for this actor, including self, and sender.
|
protected void |
produce(org.apache.camel.Endpoint endpoint,
org.apache.camel.processor.SendProcessor processor,
java.lang.Object msg,
org.apache.camel.ExchangePattern pattern)
Initiates a message exchange of given
pattern with the endpoint specified by
endpointUri. |
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
receive()
This defines the initial actor behavior, it must return a partial function
with the actor logic.
|
ActorRef |
self()
The 'self' field holds the ActorRef for this actor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, postRestart, postStop, preRestart, preStart, sender, supervisorStrategy, unhandledpublic ProducerChild(org.apache.camel.Endpoint endpoint,
org.apache.camel.processor.SendProcessor processor)
public ActorContext context()
Actorforward.
WARNING: Only valid within the Actor itself, so do not close over it and publish it to other threads!
ActorContext is the Scala API. getContext returns a
UntypedActorContext, which is the Java API of the actor
context.
public final ActorRef self()
Actorself ! message
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
Actorprotected void produce(org.apache.camel.Endpoint endpoint,
org.apache.camel.processor.SendProcessor processor,
java.lang.Object msg,
org.apache.camel.ExchangePattern pattern)
pattern with the endpoint specified by
endpointUri. The in-message of the initiated exchange is the canonical form
of msg. After sending the in-message, the processing result (response) is passed
as argument to receiveAfterProduce. If the response is received synchronously from
the endpoint then receiveAfterProduce is called synchronously as well. If the
response is received asynchronously, the receiveAfterProduce is called
asynchronously. The original sender is preserved.
endpoint - the endpointprocessor - the processormsg - message to producepattern - exchange patternCamelMessage.canonicalize(java.lang.Object)