mirror of https://github.com/longtai-cn/hippo4j
Provide ExecutorContext encapsulation context details (#557)
* Optimize the thread name produced by thread pool factory * Provide ExecutorContext encapsulation context details * Modify class directorypull/559/head
parent
2b692d0b8f
commit
9d132170c2
@ -0,0 +1,13 @@
|
||||
package cn.hippo4j.core.executor.support;
|
||||
|
||||
import org.slf4j.MDC;
|
||||
|
||||
import static cn.hippo4j.common.constant.Constants.EXECUTE_TIMEOUT_TRACE;
|
||||
|
||||
public class ExecutorContext {
|
||||
|
||||
public static void putExecuteTimeoutTrace(String executeTimeoutTrace) {
|
||||
MDC.put(EXECUTE_TIMEOUT_TRACE, executeTimeoutTrace);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in new issue