package com.srs.comprehensive.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 数据同步配置类
 * 用于管理数据同步相关的参数配置
 */
@Component
@ConfigurationProperties(prefix = "sync.student-score")
public class SyncConfig {
    
    /**
     * 分页大小
     */
    private int pageSize = 3000;
    
    /**
     * Web接口线程池大小
     */
    private int webThreadPoolSize = 10;
    
    /**
     * 定时任务线程池大小
     */
    private int scheduledThreadPoolSize = 8;
    
    /**
     * 同步超时时间（分钟）
     */
    private int timeoutMinutes = 30;
    
    /**
     * 批量插入大小
     */
    private int batchInsertSize = 1000;
    
    public int getPageSize() {
        return pageSize;
    }
    
    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
    
    public int getWebThreadPoolSize() {
        return webThreadPoolSize;
    }
    
    public void setWebThreadPoolSize(int webThreadPoolSize) {
        this.webThreadPoolSize = webThreadPoolSize;
    }
    
    public int getScheduledThreadPoolSize() {
        return scheduledThreadPoolSize;
    }
    
    public void setScheduledThreadPoolSize(int scheduledThreadPoolSize) {
        this.scheduledThreadPoolSize = scheduledThreadPoolSize;
    }
    
    public int getTimeoutMinutes() {
        return timeoutMinutes;
    }
    
    public void setTimeoutMinutes(int timeoutMinutes) {
        this.timeoutMinutes = timeoutMinutes;
    }
    
    public int getBatchInsertSize() {
        return batchInsertSize;
    }
    
    public void setBatchInsertSize(int batchInsertSize) {
        this.batchInsertSize = batchInsertSize;
    }
}
