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 new
UnitOfWork
to the Exchange
if needed, and as well to ensure the
UnitOfWork
is done and stopped.-
Constructor Summary
ConstructorDescriptionUnitOfWorkProcessorAdvice
(org.apache.camel.Route route, org.apache.camel.CamelContext camelContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
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)
-