Class MDCRunnableAdapter

java.lang.Object
org.zeroturnaround.exec.MDCRunnableAdapter
All Implemented Interfaces:
Runnable

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

    • target

      private final Runnable target
    • contextMap

      private final Map contextMap
  • Constructor Details

    • MDCRunnableAdapter

      public MDCRunnableAdapter(Runnable target, Map contextMap)
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable