package com.njzscloud.common.sichen.config;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Getter
@Setter
@ToString
@ConfigurationProperties(prefix = "task")
public class TaskProperties {

    private Pool pool = new Pool();

    @Getter
    @Setter
    @ToString
    public static class Pool {
        private String poolName = "任务执行器";
        private int corePoolSize = 10;
        private int maxPoolSize = 200;
        private long keepAliveSeconds = 300;
        private int windowCapacity = 20;
        private int standbyCapacity = 8192;
    }
}
