class MdcPropagatingDispatcherConfigurator extends MessageDispatcherConfigurator
This provides an ExecutionContext which copies MDC data over in prepare().
Since prepare() is implicitly called by Promise#onComplete, MDC data will not be lost on many async boundaries.
It may still be required to explicitly call prepare() in some scenarios (e.g. with akka)
This can be enabled with.
config
akka.actor.default-dispatcher {
type = "uk.gov.hmrc.play.bootstrap.dispatchers.MdcPropagatingDispatcherConfigurator"
}
It is not enabled by default yet, since there are a few situations in play-framework where prepare is not being called, where MDCPropagatingExecutorServiceConfigurator works better - although MDC will need to be explicitly preserved with Promises.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- MdcPropagatingDispatcherConfigurator
- MessageDispatcherConfigurator
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new MdcPropagatingDispatcherConfigurator(config: Config, prerequisites: DispatcherPrerequisites)
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]) @HotSpotIntrinsicCandidate() @native()
- val config: Config
- Definition Classes
- MessageDispatcherConfigurator
- def configureExecutor(): ExecutorServiceConfigurator
- Definition Classes
- MessageDispatcherConfigurator
- val dispatcher: MessageDispatcher
- Definition Classes
- MdcPropagatingDispatcherConfigurator → MessageDispatcherConfigurator
- 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
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @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
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- val prerequisites: DispatcherPrerequisites
- Definition Classes
- MessageDispatcherConfigurator
- 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]) @native()
- 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)