trait MDC extends AnyRef
- Alphabetic
- By Inheritance
- MDC
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def clear(): Unit
Clears all values from this MDC
- abstract def contains(key: String): Boolean
True if this MDC contains the specified key
- abstract def context[Return](values: (String, MDCValue)*)(f: => Return): Return
Contextualizes setting multiple values similar to
update
, but returns them to their previous value upon completion of the context functionf
. - abstract def get(key: String): Option[() => Any]
Gets the value function for this key if set
- abstract def map: Map[String, () => Any]
Retrieves the functional map
- abstract def remove(key: String): Option[Any]
Removes a key from this MDC instance
- abstract def set(key: String, value: Option[Any]): Option[Any]
Sets the value for the specified key.
Sets the value for the specified key. This method differs from
update
by taking anOption
that will remove the key if set toNone
. Returns the previous value for this key. - abstract def update(key: String, value: => Any): Option[Any]
Updates the value for the specified key.
Updates the value for the specified key. The
context
method should be preferred to avoid leaving MDC values set forever. Returns the previous value for this key.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def elapsed(key: String, timeFunction: () => Long = Time.function): Unit
Applies an elapsed function as an MDC value.
Applies an elapsed function as an MDC value. This represents a dynamically changing value of time elapsed since the this was set.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)