public abstract class MdcCapturedContextProvider
extends Object
implements CapturedContextProvider
CapturedContextProvider implementation to correctly propagate MDC context.| Modifier | Constructor and Description |
|---|---|
protected |
MdcCapturedContextProvider(Class<? extends ServiceTalkThreadContextMap> expectedThreadContextMapClass)
Create a new
CapturedContextProvider for MDC. |
| Modifier and Type | Method and Description |
|---|---|
CapturedContext |
captureContext(CapturedContext underlying) |
CapturedContext |
captureContextCopy(CapturedContext underlying) |
protected MdcCapturedContextProvider(Class<? extends ServiceTalkThreadContextMap> expectedThreadContextMapClass)
CapturedContextProvider for MDC.expectedThreadContextMapClass - the expected type of the MDC ThreadContext.public final CapturedContext captureContext(CapturedContext underlying)
captureContext in interface CapturedContextProviderpublic final CapturedContext captureContextCopy(CapturedContext underlying)
captureContextCopy in interface CapturedContextProvider