public class DefaultUnitOfWork extends Object implements org.apache.camel.spi.UnitOfWork, org.apache.camel.Service
UnitOfWork| Modifier | Constructor and Description |
|---|---|
|
DefaultUnitOfWork(org.apache.camel.Exchange exchange) |
protected |
DefaultUnitOfWork(org.apache.camel.Exchange exchange,
org.slf4j.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSynchronization(org.apache.camel.spi.Synchronization synchronization) |
void |
afterProcess(org.apache.camel.Processor processor,
org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback,
boolean doneSync) |
void |
afterRoute(org.apache.camel.Exchange exchange,
org.apache.camel.Route route) |
org.apache.camel.AsyncCallback |
beforeProcess(org.apache.camel.Processor processor,
org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
void |
beforeRoute(org.apache.camel.Exchange exchange,
org.apache.camel.Route route) |
void |
beginTransactedBy(Object key) |
boolean |
containsSynchronization(org.apache.camel.spi.Synchronization synchronization) |
org.apache.camel.spi.UnitOfWork |
createChildUnitOfWork(org.apache.camel.Exchange childExchange) |
void |
done(org.apache.camel.Exchange exchange) |
void |
endTransactedBy(Object key) |
String |
getId() |
org.apache.camel.Message |
getOriginalInMessage() |
org.apache.camel.spi.RouteContext |
getRouteContext() |
void |
handoverSynchronization(org.apache.camel.Exchange target) |
void |
handoverSynchronization(org.apache.camel.Exchange target,
Predicate<org.apache.camel.spi.Synchronization> filter) |
boolean |
isTransacted() |
boolean |
isTransactedBy(Object key) |
org.apache.camel.spi.RouteContext |
popRouteContext() |
void |
pushRouteContext(org.apache.camel.spi.RouteContext routeContext) |
void |
removeSynchronization(org.apache.camel.spi.Synchronization synchronization) |
void |
setParentUnitOfWork(org.apache.camel.spi.UnitOfWork parentUnitOfWork) |
void |
start() |
void |
stop() |
String |
toString() |
public DefaultUnitOfWork(org.apache.camel.Exchange exchange)
protected DefaultUnitOfWork(org.apache.camel.Exchange exchange,
org.slf4j.Logger logger)
public void setParentUnitOfWork(org.apache.camel.spi.UnitOfWork parentUnitOfWork)
setParentUnitOfWork in interface org.apache.camel.spi.UnitOfWorkpublic org.apache.camel.spi.UnitOfWork createChildUnitOfWork(org.apache.camel.Exchange childExchange)
createChildUnitOfWork in interface org.apache.camel.spi.UnitOfWorkpublic void start()
start in interface org.apache.camel.Servicepublic void stop()
stop in interface org.apache.camel.Servicepublic void addSynchronization(org.apache.camel.spi.Synchronization synchronization)
addSynchronization in interface org.apache.camel.spi.UnitOfWorkpublic void removeSynchronization(org.apache.camel.spi.Synchronization synchronization)
removeSynchronization in interface org.apache.camel.spi.UnitOfWorkpublic boolean containsSynchronization(org.apache.camel.spi.Synchronization synchronization)
containsSynchronization in interface org.apache.camel.spi.UnitOfWorkpublic void handoverSynchronization(org.apache.camel.Exchange target)
handoverSynchronization in interface org.apache.camel.spi.UnitOfWorkpublic void handoverSynchronization(org.apache.camel.Exchange target,
Predicate<org.apache.camel.spi.Synchronization> filter)
handoverSynchronization in interface org.apache.camel.spi.UnitOfWorkpublic void done(org.apache.camel.Exchange exchange)
done in interface org.apache.camel.spi.UnitOfWorkpublic void beforeRoute(org.apache.camel.Exchange exchange,
org.apache.camel.Route route)
beforeRoute in interface org.apache.camel.spi.UnitOfWorkpublic void afterRoute(org.apache.camel.Exchange exchange,
org.apache.camel.Route route)
afterRoute in interface org.apache.camel.spi.UnitOfWorkpublic String getId()
getId in interface org.apache.camel.spi.UnitOfWorkpublic org.apache.camel.Message getOriginalInMessage()
getOriginalInMessage in interface org.apache.camel.spi.UnitOfWorkpublic boolean isTransacted()
isTransacted in interface org.apache.camel.spi.UnitOfWorkpublic boolean isTransactedBy(Object key)
isTransactedBy in interface org.apache.camel.spi.UnitOfWorkpublic void beginTransactedBy(Object key)
beginTransactedBy in interface org.apache.camel.spi.UnitOfWorkpublic void endTransactedBy(Object key)
endTransactedBy in interface org.apache.camel.spi.UnitOfWorkpublic org.apache.camel.spi.RouteContext getRouteContext()
getRouteContext in interface org.apache.camel.spi.UnitOfWorkpublic void pushRouteContext(org.apache.camel.spi.RouteContext routeContext)
pushRouteContext in interface org.apache.camel.spi.UnitOfWorkpublic org.apache.camel.spi.RouteContext popRouteContext()
popRouteContext in interface org.apache.camel.spi.UnitOfWorkpublic org.apache.camel.AsyncCallback beforeProcess(org.apache.camel.Processor processor,
org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback)
beforeProcess in interface org.apache.camel.spi.UnitOfWorkpublic void afterProcess(org.apache.camel.Processor processor,
org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback,
boolean doneSync)
afterProcess in interface org.apache.camel.spi.UnitOfWorkApache Camel