Package org.apache.camel.component.netty
Class NettyCamelState
java.lang.Object
org.apache.camel.component.netty.NettyCamelState
Stores state for
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 Summary
ConstructorDescriptionNettyCamelState
(org.apache.camel.AsyncCallback callback, org.apache.camel.Exchange exchange) -
Method Summary
Modifier and TypeMethodDescriptionvoid
callbackDoneOnce
(boolean doneSync) org.apache.camel.AsyncCallback
org.apache.camel.Exchange
boolean
isDone()
void
void
onExceptionCaughtOnce
(boolean doneSync)
-
Constructor Details
-
NettyCamelState
public NettyCamelState(org.apache.camel.AsyncCallback callback, org.apache.camel.Exchange exchange)
-
-
Method Details
-
getCallback
public org.apache.camel.AsyncCallback getCallback() -
isDone
public boolean isDone() -
callbackDoneOnce
public void callbackDoneOnce(boolean doneSync) -
getExchange
public org.apache.camel.Exchange getExchange() -
onExceptionCaught
public void onExceptionCaught() -
onExceptionCaughtOnce
public void onExceptionCaughtOnce(boolean doneSync)
-