|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.impl.DefaultProducer akka.camel.internal.component.ActorProducer
public class ActorProducer
Sends the in-message of an exchange to an untyped actor, identified by an akka.camel.internal.component.ActorEndPoint
akka.camel.component.ActorComponent
,
Constructor Summary | |
---|---|
ActorProducer(ActorEndpoint endpoint,
Camel camel)
|
Method Summary | |
---|---|
ActorEndpoint |
endpoint()
|
void |
process(org.apache.camel.Exchange exchange)
Processes the exchange. |
boolean |
process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback)
Processes the message exchange. |
void |
processExchangeAdapter(CamelExchangeAdapter exchange)
INTERNAL API Processes the CamelExchangeAdapter |
boolean |
processExchangeAdapter(CamelExchangeAdapter exchange,
org.apache.camel.AsyncCallback callback)
INTERNAL API Processes the CamelExchangeAdapter . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActorProducer(ActorEndpoint endpoint, Camel camel)
Method Detail |
---|
public ActorEndpoint endpoint()
public void process(org.apache.camel.Exchange exchange)
exchange
- the exchange to processpublic boolean process(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback)
exchange
- the message exchangecallback
- the AsyncCallback will be invoked when the processing of the exchange is completed.
If the exchange is completed synchronously, then the callback is also invoked synchronously.
The callback should therefore be careful of starting recursive loop.
public void processExchangeAdapter(CamelExchangeAdapter exchange)
CamelExchangeAdapter
exchange
- the CamelExchangeAdapter
public boolean processExchangeAdapter(CamelExchangeAdapter exchange, org.apache.camel.AsyncCallback callback)
CamelExchangeAdapter
.
This method is blocking when the exchange is inOnly. The method returns true if it executed synchronously/blocking.
exchange
- the CamelExchangeAdapter
callback
- the callback
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |