Package org.apache.camel.impl.engine
Class DefaultUnitOfWork
- java.lang.Object
-
- org.apache.camel.impl.engine.DefaultUnitOfWork
-
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.Service,org.apache.camel.spi.UnitOfWork
- Direct Known Subclasses:
MDCUnitOfWork
public class DefaultUnitOfWork extends Object implements org.apache.camel.spi.UnitOfWork, org.apache.camel.Service
The default implementation ofUnitOfWork
-
-
Constructor Summary
Constructors Modifier Constructor Description DefaultUnitOfWork(org.apache.camel.Exchange exchange)DefaultUnitOfWork(org.apache.camel.Exchange exchange, org.apache.camel.spi.InflightRepository inflightRepository, boolean allowUseOriginalMessage, boolean useBreadcrumb)protectedDefaultUnitOfWork(org.apache.camel.Exchange exchange, org.slf4j.Logger logger, org.apache.camel.spi.InflightRepository inflightRepository, boolean allowUseOriginalMessage, boolean useBreadcrumb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSynchronization(org.apache.camel.spi.Synchronization synchronization)voidafterProcess(org.apache.camel.Processor processor, org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback, boolean doneSync)voidafterRoute(org.apache.camel.Exchange exchange, org.apache.camel.Route route)org.apache.camel.AsyncCallbackbeforeProcess(org.apache.camel.Processor processor, org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback)voidbeforeRoute(org.apache.camel.Exchange exchange, org.apache.camel.Route route)voidbeginTransactedBy(Object key)booleancontainsSynchronization(org.apache.camel.spi.Synchronization synchronization)org.apache.camel.spi.UnitOfWorkcreateChildUnitOfWork(org.apache.camel.Exchange childExchange)voiddone(org.apache.camel.Exchange exchange)voidendTransactedBy(Object key)org.apache.camel.MessagegetOriginalInMessage()org.apache.camel.RoutegetRoute()voidhandoverSynchronization(org.apache.camel.Exchange target)voidhandoverSynchronization(org.apache.camel.Exchange target, Predicate<org.apache.camel.spi.Synchronization> filter)booleanisBeforeAfterProcess()booleanisTransacted()booleanisTransactedBy(Object key)org.apache.camel.RoutepopRoute()voidpushRoute(org.apache.camel.Route route)voidremoveSynchronization(org.apache.camel.spi.Synchronization synchronization)voidsetParentUnitOfWork(org.apache.camel.spi.UnitOfWork parentUnitOfWork)voidstart()voidstop()StringtoString()
-
-
-
Constructor Detail
-
DefaultUnitOfWork
public DefaultUnitOfWork(org.apache.camel.Exchange exchange)
-
DefaultUnitOfWork
protected DefaultUnitOfWork(org.apache.camel.Exchange exchange, org.slf4j.Logger logger, org.apache.camel.spi.InflightRepository inflightRepository, boolean allowUseOriginalMessage, boolean useBreadcrumb)
-
DefaultUnitOfWork
public DefaultUnitOfWork(org.apache.camel.Exchange exchange, org.apache.camel.spi.InflightRepository inflightRepository, boolean allowUseOriginalMessage, boolean useBreadcrumb)
-
-
Method Detail
-
setParentUnitOfWork
public void setParentUnitOfWork(org.apache.camel.spi.UnitOfWork parentUnitOfWork)
- Specified by:
setParentUnitOfWorkin interfaceorg.apache.camel.spi.UnitOfWork
-
createChildUnitOfWork
public org.apache.camel.spi.UnitOfWork createChildUnitOfWork(org.apache.camel.Exchange childExchange)
- Specified by:
createChildUnitOfWorkin interfaceorg.apache.camel.spi.UnitOfWork
-
start
public void start()
- Specified by:
startin interfaceorg.apache.camel.Service
-
stop
public void stop()
- Specified by:
stopin interfaceorg.apache.camel.Service
-
addSynchronization
public void addSynchronization(org.apache.camel.spi.Synchronization synchronization)
- Specified by:
addSynchronizationin interfaceorg.apache.camel.spi.UnitOfWork
-
removeSynchronization
public void removeSynchronization(org.apache.camel.spi.Synchronization synchronization)
- Specified by:
removeSynchronizationin interfaceorg.apache.camel.spi.UnitOfWork
-
containsSynchronization
public boolean containsSynchronization(org.apache.camel.spi.Synchronization synchronization)
- Specified by:
containsSynchronizationin interfaceorg.apache.camel.spi.UnitOfWork
-
handoverSynchronization
public void handoverSynchronization(org.apache.camel.Exchange target)
- Specified by:
handoverSynchronizationin interfaceorg.apache.camel.spi.UnitOfWork
-
handoverSynchronization
public void handoverSynchronization(org.apache.camel.Exchange target, Predicate<org.apache.camel.spi.Synchronization> filter)- Specified by:
handoverSynchronizationin interfaceorg.apache.camel.spi.UnitOfWork
-
done
public void done(org.apache.camel.Exchange exchange)
- Specified by:
donein interfaceorg.apache.camel.spi.UnitOfWork
-
beforeRoute
public void beforeRoute(org.apache.camel.Exchange exchange, org.apache.camel.Route route)- Specified by:
beforeRoutein interfaceorg.apache.camel.spi.UnitOfWork
-
afterRoute
public void afterRoute(org.apache.camel.Exchange exchange, org.apache.camel.Route route)- Specified by:
afterRoutein interfaceorg.apache.camel.spi.UnitOfWork
-
getOriginalInMessage
public org.apache.camel.Message getOriginalInMessage()
- Specified by:
getOriginalInMessagein interfaceorg.apache.camel.spi.UnitOfWork
-
isTransacted
public boolean isTransacted()
- Specified by:
isTransactedin interfaceorg.apache.camel.spi.UnitOfWork
-
isTransactedBy
public boolean isTransactedBy(Object key)
- Specified by:
isTransactedByin interfaceorg.apache.camel.spi.UnitOfWork
-
beginTransactedBy
public void beginTransactedBy(Object key)
- Specified by:
beginTransactedByin interfaceorg.apache.camel.spi.UnitOfWork
-
endTransactedBy
public void endTransactedBy(Object key)
- Specified by:
endTransactedByin interfaceorg.apache.camel.spi.UnitOfWork
-
getRoute
public org.apache.camel.Route getRoute()
- Specified by:
getRoutein interfaceorg.apache.camel.spi.UnitOfWork
-
pushRoute
public void pushRoute(org.apache.camel.Route route)
- Specified by:
pushRoutein interfaceorg.apache.camel.spi.UnitOfWork
-
popRoute
public org.apache.camel.Route popRoute()
- Specified by:
popRoutein interfaceorg.apache.camel.spi.UnitOfWork
-
isBeforeAfterProcess
public boolean isBeforeAfterProcess()
- Specified by:
isBeforeAfterProcessin interfaceorg.apache.camel.spi.UnitOfWork
-
beforeProcess
public org.apache.camel.AsyncCallback beforeProcess(org.apache.camel.Processor processor, org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback)- Specified by:
beforeProcessin interfaceorg.apache.camel.spi.UnitOfWork
-
afterProcess
public void afterProcess(org.apache.camel.Processor processor, org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback, boolean doneSync)- Specified by:
afterProcessin interfaceorg.apache.camel.spi.UnitOfWork
-
-