Package org.apache.camel.impl.engine
Class MDCUnitOfWork
- java.lang.Object
-
- org.apache.camel.impl.engine.DefaultUnitOfWork
-
- org.apache.camel.impl.engine.MDCUnitOfWork
-
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.Service
,org.apache.camel.spi.UnitOfWork
public class MDCUnitOfWork extends DefaultUnitOfWork
This unit of work supports MDC.
-
-
Constructor Summary
Constructors Constructor Description MDCUnitOfWork(org.apache.camel.Exchange exchange, org.apache.camel.spi.InflightRepository inflightRepository, String pattern, boolean allowUseOriginalMessage, boolean useBreadcrumb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 thisMDCUnitOfWork
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()
-
Methods inherited from class org.apache.camel.impl.engine.DefaultUnitOfWork
addSynchronization, afterRoute, beforeRoute, containsSynchronization, createChildUnitOfWork, done, getOriginalInMessage, getRoute, handoverSynchronization, handoverSynchronization, isTransacted, isTransactedBy, removeSynchronization, setParentUnitOfWork, start
-
-
-
-
Constructor Detail
-
MDCUnitOfWork
public MDCUnitOfWork(org.apache.camel.Exchange exchange, org.apache.camel.spi.InflightRepository inflightRepository, String pattern, boolean allowUseOriginalMessage, boolean useBreadcrumb)
-
-
Method Detail
-
newInstance
public org.apache.camel.spi.UnitOfWork newInstance(org.apache.camel.Exchange exchange)
-
stop
public void stop()
- Specified by:
stop
in interfaceorg.apache.camel.Service
- Overrides:
stop
in classDefaultUnitOfWork
-
pushRoute
public void pushRoute(org.apache.camel.Route route)
- Specified by:
pushRoute
in interfaceorg.apache.camel.spi.UnitOfWork
- Overrides:
pushRoute
in classDefaultUnitOfWork
-
popRoute
public org.apache.camel.Route popRoute()
- Specified by:
popRoute
in interfaceorg.apache.camel.spi.UnitOfWork
- Overrides:
popRoute
in classDefaultUnitOfWork
-
beginTransactedBy
public void beginTransactedBy(Object key)
- Specified by:
beginTransactedBy
in interfaceorg.apache.camel.spi.UnitOfWork
- Overrides:
beginTransactedBy
in classDefaultUnitOfWork
-
endTransactedBy
public void endTransactedBy(Object key)
- Specified by:
endTransactedBy
in interfaceorg.apache.camel.spi.UnitOfWork
- Overrides:
endTransactedBy
in classDefaultUnitOfWork
-
isBeforeAfterProcess
public boolean isBeforeAfterProcess()
- Specified by:
isBeforeAfterProcess
in interfaceorg.apache.camel.spi.UnitOfWork
- Overrides:
isBeforeAfterProcess
in classDefaultUnitOfWork
-
beforeProcess
public org.apache.camel.AsyncCallback beforeProcess(org.apache.camel.Processor processor, org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback)
- Specified by:
beforeProcess
in interfaceorg.apache.camel.spi.UnitOfWork
- Overrides:
beforeProcess
in classDefaultUnitOfWork
-
afterProcess
public void afterProcess(org.apache.camel.Processor processor, org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback, boolean doneSync)
- Specified by:
afterProcess
in interfaceorg.apache.camel.spi.UnitOfWork
- Overrides:
afterProcess
in classDefaultUnitOfWork
-
clear
public void clear()
Clears information put on the MDC by thisMDCUnitOfWork
-
toString
public String toString()
- Overrides:
toString
in classDefaultUnitOfWork
-
-