Package org.apache.camel.component.netty
Class NettyCamelState
- java.lang.Object
-
- org.apache.camel.component.netty.NettyCamelState
-
public final class NettyCamelState extends Object
Stores state forNettyProducerwhen sending messages. This allows theClientChannelHandlerto access this state, which is needed so we can get hold of the currentExchangeand theAsyncCallbackso we can continue routing the message in the Camel routing engine.
-
-
Constructor Summary
Constructors Constructor Description NettyCamelState(org.apache.camel.AsyncCallback callback, org.apache.camel.Exchange exchange)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcallbackDoneOnce(boolean doneSync)org.apache.camel.AsyncCallbackgetCallback()org.apache.camel.ExchangegetExchange()booleanisDone()voidonExceptionCaught()voidonExceptionCaughtOnce(boolean doneSync)
-
-
-
Method Detail
-
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)
-
-