Class MDCThreadFactoryListener

java.lang.Object
org.apache.camel.impl.engine.MDCThreadFactoryListener
All Implemented Interfaces:
org.apache.camel.spi.ExecutorServiceManager.ThreadFactoryListener

public class MDCThreadFactoryListener extends Object implements org.apache.camel.spi.ExecutorServiceManager.ThreadFactoryListener
MDC ExecutorServiceManager.ThreadFactoryListener which will include the MDC information for route id which allows MDC logging to pin-point to the route that logs. This makes it possible to include this information earlier such as from the internal work that a consumer performs before routing Exchange where the MDCUnitOfWork would include this information.
  • Constructor Details

    • MDCThreadFactoryListener

      public MDCThreadFactoryListener()
  • Method Details

    • onNewThreadFactory

      public ThreadFactory onNewThreadFactory(Object source, ThreadFactory factory)
      Specified by:
      onNewThreadFactory in interface org.apache.camel.spi.ExecutorServiceManager.ThreadFactoryListener