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 newUnitOfWork
to theExchange
if needed, and as well to ensure theUnitOfWork
is 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 void
after(org.apache.camel.Exchange exchange, org.apache.camel.spi.UnitOfWork uow)
org.apache.camel.spi.UnitOfWork
before(org.apache.camel.Exchange exchange)
protected org.apache.camel.spi.UnitOfWork
createUnitOfWork(org.apache.camel.Exchange exchange)
-
-
-
Method Detail
-
before
public org.apache.camel.spi.UnitOfWork before(org.apache.camel.Exchange exchange) throws Exception
- Specified by:
before
in 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:
after
in 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)
-
-