object RequestMdc
Provides a stable store of MDC data relating to a Request.
As long as all data to be added to the MDC is added via RequestMdc
(RequestMdc.add(request.id, Map("mykey", "myval"))), then
RequestMdc.initMdc(request.id) can be called whenever a Request
is in scope to ensure the thread has the correct MDC.
- Alphabetic
- By Inheritance
- RequestMdc
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- def add(requestId: Long, data: Map[String, String]): Unit
Adds the provided data to any existing MDC for the provided requestId
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clear(requestId: Long): Unit
Clears the MDC for the provided requestId
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- 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
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def initMdc(requestId: Long): Unit
Ensures the MDC is populated with only the data previously registered with
RequestMdc.Ensures the MDC is populated with only the data previously registered with
RequestMdc. It can be called periodically, to ensure MDC is correct. E.g. after an async boundary. - 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
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def remove(requestId: Long, key: String): Unit
Remove specific data from MDC for the provided requestId and data key
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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]) @native()
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)