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>
- Enclosing class:
CamelInternalProcessor
public static class CamelInternalProcessor.UnitOfWorkProcessorAdvice
extends Object
implements org.apache.camel.spi.CamelInternalProcessorAdvice<org.apache.camel.spi.UnitOfWork>
Advice to inject new
UnitOfWork to the Exchange if needed, and as well to ensure the
UnitOfWork is done and stopped.-
Constructor Summary
ConstructorsConstructorDescriptionUnitOfWorkProcessorAdvice(org.apache.camel.Route route, org.apache.camel.CamelContext camelContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidafter(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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.spi.CamelInternalProcessorAdvice
hasState
-
Constructor Details
-
UnitOfWorkProcessorAdvice
public UnitOfWorkProcessorAdvice(org.apache.camel.Route route, org.apache.camel.CamelContext camelContext)
-
-
Method Details
-
before
- 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)
-