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) |
|
DefaultUnitOfWork(org.apache.camel.Exchange exchange,
org.apache.camel.spi.InflightRepository inflightRepository,
boolean allowUseOriginalMessage,
boolean useBreadcrumb) |
protected |
DefaultUnitOfWork(org.apache.camel.Exchange exchange,
org.slf4j.Logger logger,
org.apache.camel.spi.InflightRepository inflightRepository,
boolean allowUseOriginalMessage,
boolean useBreadcrumb) |
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) |
org.apache.camel.Message |
getOriginalInMessage() |
org.apache.camel.Route |
getRoute() |
void |
handoverSynchronization(org.apache.camel.Exchange target) |
void |
handoverSynchronization(org.apache.camel.Exchange target,
Predicate<org.apache.camel.spi.Synchronization> filter) |
boolean |
isBeforeAfterProcess() |
boolean |
isTransacted() |
boolean |
isTransactedBy(Object key) |
org.apache.camel.Route |
popRoute() |
void |
pushRoute(org.apache.camel.Route route) |
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, org.apache.camel.spi.InflightRepository inflightRepository, boolean allowUseOriginalMessage, boolean useBreadcrumb)
public DefaultUnitOfWork(org.apache.camel.Exchange exchange, org.apache.camel.spi.InflightRepository inflightRepository, boolean allowUseOriginalMessage, boolean useBreadcrumb)
public void setParentUnitOfWork(org.apache.camel.spi.UnitOfWork parentUnitOfWork)
setParentUnitOfWork
in interface org.apache.camel.spi.UnitOfWork
public org.apache.camel.spi.UnitOfWork createChildUnitOfWork(org.apache.camel.Exchange childExchange)
createChildUnitOfWork
in interface org.apache.camel.spi.UnitOfWork
public void start()
start
in interface org.apache.camel.Service
public void stop()
stop
in interface org.apache.camel.Service
public void addSynchronization(org.apache.camel.spi.Synchronization synchronization)
addSynchronization
in interface org.apache.camel.spi.UnitOfWork
public void removeSynchronization(org.apache.camel.spi.Synchronization synchronization)
removeSynchronization
in interface org.apache.camel.spi.UnitOfWork
public boolean containsSynchronization(org.apache.camel.spi.Synchronization synchronization)
containsSynchronization
in interface org.apache.camel.spi.UnitOfWork
public void handoverSynchronization(org.apache.camel.Exchange target)
handoverSynchronization
in interface org.apache.camel.spi.UnitOfWork
public void handoverSynchronization(org.apache.camel.Exchange target, Predicate<org.apache.camel.spi.Synchronization> filter)
handoverSynchronization
in interface org.apache.camel.spi.UnitOfWork
public void done(org.apache.camel.Exchange exchange)
done
in interface org.apache.camel.spi.UnitOfWork
public void beforeRoute(org.apache.camel.Exchange exchange, org.apache.camel.Route route)
beforeRoute
in interface org.apache.camel.spi.UnitOfWork
public void afterRoute(org.apache.camel.Exchange exchange, org.apache.camel.Route route)
afterRoute
in interface org.apache.camel.spi.UnitOfWork
public org.apache.camel.Message getOriginalInMessage()
getOriginalInMessage
in interface org.apache.camel.spi.UnitOfWork
public boolean isTransacted()
isTransacted
in interface org.apache.camel.spi.UnitOfWork
public boolean isTransactedBy(Object key)
isTransactedBy
in interface org.apache.camel.spi.UnitOfWork
public void beginTransactedBy(Object key)
beginTransactedBy
in interface org.apache.camel.spi.UnitOfWork
public void endTransactedBy(Object key)
endTransactedBy
in interface org.apache.camel.spi.UnitOfWork
public org.apache.camel.Route getRoute()
getRoute
in interface org.apache.camel.spi.UnitOfWork
public void pushRoute(org.apache.camel.Route route)
pushRoute
in interface org.apache.camel.spi.UnitOfWork
public org.apache.camel.Route popRoute()
popRoute
in interface org.apache.camel.spi.UnitOfWork
public boolean isBeforeAfterProcess()
isBeforeAfterProcess
in interface org.apache.camel.spi.UnitOfWork
public 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.UnitOfWork
public 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.UnitOfWork
Apache Camel