3.4.1-release
xuxueli 3 months ago
parent a0551c200e
commit a7a3d44ee1

@ -25,4 +25,12 @@ public class Const {
*/ */
public static final int DEAD_TIMEOUT = BEAT_TIMEOUT * 3; public static final int DEAD_TIMEOUT = BEAT_TIMEOUT * 3;
// ---------------------- for executor ----------------------
/*
* elegant shutdown wait seconds
*/
public static final long ELEGANT_SHUTDOWN_WAITING_SECONDS = 5;
} }

@ -138,7 +138,7 @@ public class XxlJobContext {
/** /**
* xxl-job context store * xxl-job context store
*/ */
private static final InheritableThreadLocal<XxlJobContext> contextHolder = new InheritableThreadLocal<XxlJobContext>(); // support for child thread of job handler) private static final InheritableThreadLocal<XxlJobContext> contextHolder = new InheritableThreadLocal<>(); // support for child thread of job handler)
/** /**
* set xxl-job context * set xxl-job context

Loading…
Cancel
Save