Package org.zeroturnaround.exec
Class MDCRunnableAdapter
- java.lang.Object
-
- org.zeroturnaround.exec.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()
-