public final class NettyCamelState extends Object
NettyProducer
when sending messages.
This allows the ClientChannelHandler
to access this state, which is
needed so we can get hold of the current Exchange
and the AsyncCallback
so we can continue routing
the message in the Camel routing engine.Constructor and Description |
---|
NettyCamelState(org.apache.camel.AsyncCallback callback,
org.apache.camel.Exchange exchange) |
Modifier and Type | Method and Description |
---|---|
void |
callbackDoneOnce(boolean doneSync) |
org.apache.camel.AsyncCallback |
getCallback() |
org.apache.camel.Exchange |
getExchange() |
boolean |
isDone() |
void |
onExceptionCaught() |
void |
onExceptionCaughtOnce(boolean doneSync) |
public NettyCamelState(org.apache.camel.AsyncCallback callback, org.apache.camel.Exchange exchange)
public org.apache.camel.AsyncCallback getCallback()
public boolean isDone()
public void callbackDoneOnce(boolean doneSync)
public org.apache.camel.Exchange getExchange()
public void onExceptionCaught()
public void onExceptionCaughtOnce(boolean doneSync)
Apache Camel