public static class CamelInternalProcessor.SubUnitOfWorkProcessorAdvice extends Object implements CamelInternalProcessorAdvice<UnitOfWork>
Constructor and Description |
---|
SubUnitOfWorkProcessorAdvice() |
Modifier and Type | Method and Description |
---|---|
void |
after(Exchange exchange,
UnitOfWork unitOfWork)
Callback executed after processing a step in the route.
|
UnitOfWork |
before(Exchange exchange)
Callback executed before processing a step in the route.
|
public SubUnitOfWorkProcessorAdvice()
public UnitOfWork before(Exchange exchange) throws Exception
CamelInternalProcessorAdvice
before
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 unitOfWork) throws Exception
CamelInternalProcessorAdvice
after
in interface CamelInternalProcessorAdvice<UnitOfWork>
exchange
- the current exchangeunitOfWork
- the state, if any, returned in the CamelInternalProcessorAdvice.before(org.apache.camel.Exchange)
method.Exception
- is thrown if error during the call.Apache Camel