optimize: scheduler executors initialization
This commit is contained in:
@@ -53,7 +53,7 @@ import java.util.concurrent.atomic.AtomicLong;
|
|||||||
// @ConditionalOnProperty(name="flowControl",havingValue = "true")
|
// @ConditionalOnProperty(name="flowControl",havingValue = "true")
|
||||||
@DependsOn(FlowControlFilter.FLOW_CONTROL_FILTER)
|
@DependsOn(FlowControlFilter.FLOW_CONTROL_FILTER)
|
||||||
@EnableScheduling
|
@EnableScheduling
|
||||||
//// @ConfigurationProperties(prefix = "flow-stat-sched")
|
// @ConfigurationProperties(prefix = "flow-stat-sched")
|
||||||
public class FlowStatSchedConfig extends SchedConfig {
|
public class FlowStatSchedConfig extends SchedConfig {
|
||||||
|
|
||||||
private static final Logger log = LoggerFactory.getLogger(FlowStatSchedConfig.class);
|
private static final Logger log = LoggerFactory.getLogger(FlowStatSchedConfig.class);
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ import org.springframework.scheduling.config.ScheduledTaskRegistrar;
|
|||||||
* @author hongqiaowei
|
* @author hongqiaowei
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ConfigurationProperties(prefix = "flow-stat-sched")
|
@ConfigurationProperties(prefix = "sched")
|
||||||
public abstract class SchedConfig implements SchedulingConfigurer {
|
public abstract class SchedConfig implements SchedulingConfigurer {
|
||||||
|
|
||||||
private int executors = 1;
|
private int executors = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user