org.apache.camel.processor
Class CamelInternalProcessor.SubUnitOfWorkProcessorAdvice
java.lang.Object
org.apache.camel.processor.CamelInternalProcessor.SubUnitOfWorkProcessorAdvice
- All Implemented Interfaces:
- CamelInternalProcessorAdvice<UnitOfWork>
- Enclosing class:
- CamelInternalProcessor
public static class CamelInternalProcessor.SubUnitOfWorkProcessorAdvice
- extends Object
- implements CamelInternalProcessorAdvice<UnitOfWork>
Advice when an EIP uses the shareUnitOfWork functionality.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CamelInternalProcessor.SubUnitOfWorkProcessorAdvice
public CamelInternalProcessor.SubUnitOfWorkProcessorAdvice()
before
public UnitOfWork before(Exchange exchange)
throws Exception
- Description copied from interface:
CamelInternalProcessorAdvice
- Callback executed before processing a step in the route.
- Specified by:
before
in interface CamelInternalProcessorAdvice<UnitOfWork>
- Parameters:
exchange
- the current exchange
- Returns:
- any state to keep and provide as data to the
CamelInternalProcessorAdvice.after(org.apache.camel.Exchange, Object)
method, or use null for no state.
- Throws:
Exception
- is thrown if error during the call.
after
public void after(Exchange exchange,
UnitOfWork unitOfWork)
throws Exception
- Description copied from interface:
CamelInternalProcessorAdvice
- Callback executed after processing a step in the route.
- Specified by:
after
in interface CamelInternalProcessorAdvice<UnitOfWork>
- Parameters:
exchange
- the current exchangeunitOfWork
- the state, if any, returned in the CamelInternalProcessorAdvice.before(org.apache.camel.Exchange)
method.
- Throws:
Exception
- is thrown if error during the call.
Apache Camel