public class MDCUnitOfWork extends DefaultUnitOfWork
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) |
org.apache.camel.Route |
popRoute() |
void |
pushRoute(org.apache.camel.Route route) |
void |
stop() |
String |
toString() |
addSynchronization, afterRoute, beforeRoute, containsSynchronization, createChildUnitOfWork, done, getOriginalInMessage, getRoute, handoverSynchronization, handoverSynchronization, isTransacted, isTransactedBy, removeSynchronization, setParentUnitOfWork, start
public MDCUnitOfWork(org.apache.camel.Exchange exchange, org.apache.camel.spi.InflightRepository inflightRepository, String pattern, boolean allowUseOriginalMessage, boolean useBreadcrumb)
public org.apache.camel.spi.UnitOfWork newInstance(org.apache.camel.Exchange exchange)
public void stop()
stop
in interface org.apache.camel.Service
stop
in class DefaultUnitOfWork
public void pushRoute(org.apache.camel.Route route)
pushRoute
in interface org.apache.camel.spi.UnitOfWork
pushRoute
in class DefaultUnitOfWork
public org.apache.camel.Route popRoute()
popRoute
in interface org.apache.camel.spi.UnitOfWork
popRoute
in class DefaultUnitOfWork
public void beginTransactedBy(Object key)
beginTransactedBy
in interface org.apache.camel.spi.UnitOfWork
beginTransactedBy
in class DefaultUnitOfWork
public void endTransactedBy(Object key)
endTransactedBy
in interface org.apache.camel.spi.UnitOfWork
endTransactedBy
in class DefaultUnitOfWork
public boolean isBeforeAfterProcess()
isBeforeAfterProcess
in interface org.apache.camel.spi.UnitOfWork
isBeforeAfterProcess
in class DefaultUnitOfWork
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
beforeProcess
in class DefaultUnitOfWork
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
afterProcess
in class DefaultUnitOfWork
public void clear()
MDCUnitOfWork
public String toString()
toString
in class DefaultUnitOfWork
Apache Camel