public static class CamelInternalProcessor.UnitOfWorkProcessorAdvice extends Object implements org.apache.camel.spi.CamelInternalProcessorAdvice<org.apache.camel.spi.UnitOfWork>
UnitOfWork to the Exchange if needed, and as well to ensure the
UnitOfWork is done and stopped.| Constructor and Description |
|---|
UnitOfWorkProcessorAdvice(org.apache.camel.Route route,
org.apache.camel.CamelContext camelContext) |
| Modifier and Type | Method and 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) |
public UnitOfWorkProcessorAdvice(org.apache.camel.Route route,
org.apache.camel.CamelContext camelContext)
public org.apache.camel.spi.UnitOfWork before(org.apache.camel.Exchange exchange)
throws Exception
before in interface org.apache.camel.spi.CamelInternalProcessorAdvice<org.apache.camel.spi.UnitOfWork>Exceptionpublic void after(org.apache.camel.Exchange exchange,
org.apache.camel.spi.UnitOfWork uow)
throws Exception
after in interface org.apache.camel.spi.CamelInternalProcessorAdvice<org.apache.camel.spi.UnitOfWork>Exceptionprotected org.apache.camel.spi.UnitOfWork createUnitOfWork(org.apache.camel.Exchange exchange)
Apache Camel