Package org.zeroturnaround.exec
Class MDCCallableAdapter<T>
- java.lang.Object
-
- org.zeroturnaround.exec.MDCCallableAdapter<T>
-
- All Implemented Interfaces:
java.util.concurrent.Callable<T>
public class MDCCallableAdapter<T> extends java.lang.Object implements java.util.concurrent.Callable<T>
Restores the MDC context map for the target action.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map
contextMap
private java.util.concurrent.Callable<T>
target
-
Constructor Summary
Constructors Constructor Description MDCCallableAdapter(java.util.concurrent.Callable<T> target, java.util.Map contextMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
call()
-