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
@Deprecated(since="4.19.0")
public class MDCUnitOfWork
extends DefaultUnitOfWork
implements org.apache.camel.Service
Deprecated.
This unit of work supports MDC.
-
Field Summary
Fields inherited from interface org.apache.camel.spi.UnitOfWork
MDC_BREADCRUMB_ID, MDC_CAMEL_CONTEXT_ID, MDC_CORRELATION_ID, MDC_EXCHANGE_ID, MDC_MESSAGE_ID, MDC_ROUTE_ID, MDC_STEP_ID, MDC_TRANSACTION_KEY -
Constructor Summary
ConstructorsConstructorDescriptionMDCUnitOfWork(org.apache.camel.Exchange exchange, org.apache.camel.spi.InflightRepository inflightRepository, String pattern, boolean allowUseOriginalMessage, boolean useBreadcrumb) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidafterProcess(org.apache.camel.Processor processor, org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback, boolean doneSync) Deprecated.org.apache.camel.AsyncCallbackbeforeProcess(org.apache.camel.Processor processor, org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback) Deprecated.voidbeginTransactedBy(Object key) Deprecated.voidclear()Deprecated.Clears information put on the MDC by thisMDCUnitOfWorkprotected voidclearCustom(org.apache.camel.Exchange exchange) Deprecated.Clear custom MDC values based on the configured MDC patternvoiddone(org.apache.camel.Exchange exchange) Deprecated.voidendTransactedBy(Object key) Deprecated.booleanDeprecated.org.apache.camel.spi.UnitOfWorknewInstance(org.apache.camel.Exchange exchange) Deprecated.protected voidonDone()Deprecated.org.apache.camel.RoutepopRoute()Deprecated.protected voidprepareMDC(org.apache.camel.Exchange exchange) Deprecated.voidpushRoute(org.apache.camel.Route route) Deprecated.voidreset()Deprecated.voidstart()Deprecated.voidstop()Deprecated.toString()Deprecated.Methods inherited from class DefaultUnitOfWork
addSynchronization, afterRoute, beforeRoute, containsSynchronization, createChildUnitOfWork, getOriginalInMessage, getRoute, handoverSynchronization, handoverSynchronization, isTransacted, isTransactedBy, onPrepare, removeSynchronization, routeStackLevel, routeStackLevel, setParentUnitOfWorkMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.camel.Service
build, close, init
-
Constructor Details
-
MDCUnitOfWork
public MDCUnitOfWork(org.apache.camel.Exchange exchange, org.apache.camel.spi.InflightRepository inflightRepository, String pattern, boolean allowUseOriginalMessage, boolean useBreadcrumb) Deprecated.
-
-
Method Details
-
prepareMDC
protected void prepareMDC(org.apache.camel.Exchange exchange) Deprecated. -
newInstance
public org.apache.camel.spi.UnitOfWork newInstance(org.apache.camel.Exchange exchange) Deprecated. -
pushRoute
public void pushRoute(org.apache.camel.Route route) Deprecated.- Specified by:
pushRoutein interfaceorg.apache.camel.spi.UnitOfWork- Overrides:
pushRoutein classDefaultUnitOfWork
-
popRoute
public org.apache.camel.Route popRoute()Deprecated.- Specified by:
popRoutein interfaceorg.apache.camel.spi.UnitOfWork- Overrides:
popRoutein classDefaultUnitOfWork
-
beginTransactedBy
Deprecated.- Specified by:
beginTransactedByin interfaceorg.apache.camel.spi.UnitOfWork- Overrides:
beginTransactedByin classDefaultUnitOfWork
-
endTransactedBy
Deprecated.- Specified by:
endTransactedByin interfaceorg.apache.camel.spi.UnitOfWork- Overrides:
endTransactedByin classDefaultUnitOfWork
-
isBeforeAfterProcess
public boolean isBeforeAfterProcess()Deprecated.- Specified by:
isBeforeAfterProcessin interfaceorg.apache.camel.spi.UnitOfWork- Overrides:
isBeforeAfterProcessin classDefaultUnitOfWork
-
beforeProcess
public org.apache.camel.AsyncCallback beforeProcess(org.apache.camel.Processor processor, org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback) Deprecated.- Specified by:
beforeProcessin interfaceorg.apache.camel.spi.UnitOfWork- Overrides:
beforeProcessin classDefaultUnitOfWork
-
afterProcess
public void afterProcess(org.apache.camel.Processor processor, org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback, boolean doneSync) Deprecated.- Specified by:
afterProcessin interfaceorg.apache.camel.spi.UnitOfWork- Overrides:
afterProcessin classDefaultUnitOfWork
-
clear
-
clearCustom
protected void clearCustom(org.apache.camel.Exchange exchange) Deprecated.Clear custom MDC values based on the configured MDC pattern -
done
public void done(org.apache.camel.Exchange exchange) Deprecated.- Specified by:
donein interfaceorg.apache.camel.spi.UnitOfWork- Overrides:
donein classDefaultUnitOfWork
-
onDone
-
reset
public void reset()Deprecated.- Specified by:
resetin interfaceorg.apache.camel.spi.UnitOfWork- Overrides:
resetin classDefaultUnitOfWork
-
start
public void start()Deprecated.- Specified by:
startin interfaceorg.apache.camel.Service
-
stop
public void stop()Deprecated.- Specified by:
stopin interfaceorg.apache.camel.Service
-
toString
-