Class MDCRunnableAdapter

  • All Implemented Interfaces:
    java.lang.Runnable

    public class MDCRunnableAdapter
    extends java.lang.Object
    implements java.lang.Runnable
    Restores the MDC context map for the target action.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map contextMap  
      private java.lang.Runnable target  
    • Constructor Summary

      Constructors 
      Constructor Description
      MDCRunnableAdapter​(java.lang.Runnable target, java.util.Map contextMap)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • target

        private final java.lang.Runnable target
      • contextMap

        private final java.util.Map contextMap
    • Constructor Detail

      • MDCRunnableAdapter

        public MDCRunnableAdapter​(java.lang.Runnable target,
                                  java.util.Map contextMap)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable