MdcContext

class MdcContext(contextMap: Map<String, String>) : AbstractCoroutineContextElement, ThreadContextElement<Map<String, String>?>

Constructors

Link copied to clipboard
constructor(contextMap: Map<String, String>)
constructor(vararg pairs: Pair<String, String>)

Types

Link copied to clipboard

Properties

Link copied to clipboard
open override val key: CoroutineContext.Key<*>

Functions

Link copied to clipboard
open override fun <R> fold(initial: R, operation: (R, CoroutineContext.Element) -> R): R
Link copied to clipboard
open operator override fun <E : CoroutineContext.Element> get(key: CoroutineContext.Key<E>): E?
Link copied to clipboard
open override fun minusKey(key: CoroutineContext.Key<*>): CoroutineContext
Link copied to clipboard
operator fun plus(other: MdcContext): MdcContext
operator fun plus(pair: Pair<String, String>): MdcContext
operator fun plus(pairs: Map<String, String>): MdcContext
open operator fun plus(context: CoroutineContext): CoroutineContext
Link copied to clipboard
open override fun restoreThreadContext(context: CoroutineContext, oldState: Map<String, String>?)
Link copied to clipboard
open override fun updateThreadContext(context: CoroutineContext): Map<String, String>?