public static class CamelInternalProcessor.UnitOfWorkProcessorAdvice extends Object implements CamelInternalProcessorAdvice<UnitOfWork>
UnitOfWork to the Exchange if needed, and as well to ensure
the UnitOfWork is done and stopped.| Constructor and Description |
|---|
CamelInternalProcessor.UnitOfWorkProcessorAdvice(String routeId) |
| Modifier and Type | Method and Description |
|---|---|
void |
after(Exchange exchange,
UnitOfWork uow)
Callback executed after processing a step in the route.
|
UnitOfWork |
before(Exchange exchange)
Callback executed before processing a step in the route.
|
protected UnitOfWork |
createUnitOfWork(Exchange exchange) |
public CamelInternalProcessor.UnitOfWorkProcessorAdvice(String routeId)
public UnitOfWork before(Exchange exchange) throws Exception
CamelInternalProcessorAdvicebefore in interface CamelInternalProcessorAdvice<UnitOfWork>exchange - the current exchangeCamelInternalProcessorAdvice.after(org.apache.camel.Exchange, Object) method, or use null for no state.Exception - is thrown if error during the call.public void after(Exchange exchange, UnitOfWork uow) throws Exception
CamelInternalProcessorAdviceafter in interface CamelInternalProcessorAdvice<UnitOfWork>exchange - the current exchangeuow - the state, if any, returned in the CamelInternalProcessorAdvice.before(org.apache.camel.Exchange) method.Exception - is thrown if error during the call.protected UnitOfWork createUnitOfWork(Exchange exchange)
Apache Camel