Package org.apache.camel.impl.engine
Class CamelInternalProcessor.UnitOfWorkProcessorAdvice
- java.lang.Object
-
- org.apache.camel.impl.engine.CamelInternalProcessor.UnitOfWorkProcessorAdvice
-
- All Implemented Interfaces:
org.apache.camel.spi.CamelInternalProcessorAdvice<org.apache.camel.spi.UnitOfWork>
- Direct Known Subclasses:
CamelInternalProcessor.ChildUnitOfWorkProcessorAdvice
- Enclosing class:
- CamelInternalProcessor
public static class CamelInternalProcessor.UnitOfWorkProcessorAdvice extends Object implements org.apache.camel.spi.CamelInternalProcessorAdvice<org.apache.camel.spi.UnitOfWork>
Advice to inject newUnitOfWorkto theExchangeif needed, and as well to ensure theUnitOfWorkis done and stopped.
-
-
Constructor Summary
Constructors Constructor Description UnitOfWorkProcessorAdvice(org.apache.camel.Route route, org.apache.camel.CamelContext camelContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafter(org.apache.camel.Exchange exchange, org.apache.camel.spi.UnitOfWork uow)org.apache.camel.spi.UnitOfWorkbefore(org.apache.camel.Exchange exchange)protected org.apache.camel.spi.UnitOfWorkcreateUnitOfWork(org.apache.camel.Exchange exchange)
-
-
-
Method Detail
-
before
public org.apache.camel.spi.UnitOfWork before(org.apache.camel.Exchange exchange) throws Exception- Specified by:
beforein interfaceorg.apache.camel.spi.CamelInternalProcessorAdvice<org.apache.camel.spi.UnitOfWork>- Throws:
Exception
-
after
public void after(org.apache.camel.Exchange exchange, org.apache.camel.spi.UnitOfWork uow) throws Exception- Specified by:
afterin interfaceorg.apache.camel.spi.CamelInternalProcessorAdvice<org.apache.camel.spi.UnitOfWork>- Throws:
Exception
-
createUnitOfWork
protected org.apache.camel.spi.UnitOfWork createUnitOfWork(org.apache.camel.Exchange exchange)
-
-