MdcExecutionContext

uk.gov.hmrc.mdc.MdcExecutionContext
See theMdcExecutionContext companion object
class MdcExecutionContext(delegate: ExecutionContextExecutorService) extends ExecutionContextExecutor, MdcExecutorService

Manages execution to ensure that the given MDC context are set correctly in the current thread. Actual execution is performed by a delegate ExecutionContext.

This is mostly provided for tests, and it is expected that the ExecutionContext is injected as provided by bootstrap-play.

Attributes

Companion
object
Graph
Supertypes
trait ExecutionContextExecutor
trait Executor
trait ExecutionContext
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def reportFailure(t: Throwable): Unit

Inherited methods

def execute(command: Runnable): Unit

Attributes

Inherited from:
MdcExecutorService

Deprecated and Inherited methods

def prepare(): ExecutionContext

Attributes

Deprecated
[Since version 2.12.0] preparation of ExecutionContexts will be removed
Inherited from:
ExecutionContext

Concrete fields

override val executor: ExecutorService