public class MDCUnitOfWork extends DefaultUnitOfWork implements org.apache.camel.Service
| Constructor and Description |
|---|
MDCUnitOfWork(org.apache.camel.Exchange exchange,
org.apache.camel.spi.InflightRepository inflightRepository,
String pattern,
boolean allowUseOriginalMessage,
boolean useBreadcrumb) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterProcess(org.apache.camel.Processor processor,
org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback,
boolean doneSync) |
org.apache.camel.AsyncCallback |
beforeProcess(org.apache.camel.Processor processor,
org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
void |
beginTransactedBy(Object key) |
void |
clear()
Clears information put on the MDC by this
MDCUnitOfWork |
void |
endTransactedBy(Object key) |
boolean |
isBeforeAfterProcess() |
org.apache.camel.spi.UnitOfWork |
newInstance(org.apache.camel.Exchange exchange) |
protected void |
onDone() |
org.apache.camel.Route |
popRoute() |
protected void |
prepareMDC(org.apache.camel.Exchange exchange) |
void |
pushRoute(org.apache.camel.Route route) |
void |
reset() |
void |
start() |
void |
stop() |
String |
toString() |
addSynchronization, afterRoute, beforeRoute, containsSynchronization, createChildUnitOfWork, done, getOriginalInMessage, getRoute, handoverSynchronization, handoverSynchronization, isTransacted, isTransactedBy, onClassloaded, onPrepare, removeSynchronization, setParentUnitOfWorkpublic MDCUnitOfWork(org.apache.camel.Exchange exchange,
org.apache.camel.spi.InflightRepository inflightRepository,
String pattern,
boolean allowUseOriginalMessage,
boolean useBreadcrumb)
protected void prepareMDC(org.apache.camel.Exchange exchange)
public org.apache.camel.spi.UnitOfWork newInstance(org.apache.camel.Exchange exchange)
public void pushRoute(org.apache.camel.Route route)
pushRoute in interface org.apache.camel.spi.UnitOfWorkpushRoute in class DefaultUnitOfWorkpublic org.apache.camel.Route popRoute()
popRoute in interface org.apache.camel.spi.UnitOfWorkpopRoute in class DefaultUnitOfWorkpublic void beginTransactedBy(Object key)
beginTransactedBy in interface org.apache.camel.spi.UnitOfWorkbeginTransactedBy in class DefaultUnitOfWorkpublic void endTransactedBy(Object key)
endTransactedBy in interface org.apache.camel.spi.UnitOfWorkendTransactedBy in class DefaultUnitOfWorkpublic boolean isBeforeAfterProcess()
isBeforeAfterProcess in interface org.apache.camel.spi.UnitOfWorkisBeforeAfterProcess in class DefaultUnitOfWorkpublic 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.UnitOfWorkbeforeProcess in class DefaultUnitOfWorkpublic 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.UnitOfWorkafterProcess in class DefaultUnitOfWorkpublic void clear()
MDCUnitOfWorkprotected void onDone()
onDone in class DefaultUnitOfWorkpublic void reset()
reset in interface org.apache.camel.spi.UnitOfWorkreset in class DefaultUnitOfWorkpublic void start()
start in interface org.apache.camel.Servicepublic void stop()
stop in interface org.apache.camel.Servicepublic String toString()
toString in class DefaultUnitOfWorkApache Camel