package com.sjyt.icom.asst.conf.properties;

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

/**
 * <p>对象池配置类</p>
 *
 * @author renyanru
 * @version V1.0.0
 * @date 2022/6/16 10:48
 */
@Data
@ConfigurationProperties(prefix = ObjectPoolsProperties.PRE)
public class ObjectPoolsProperties {
    public static final String PRE = "obj.pool";
    /**
     * 最大空闲
     */
    private int maxIdle = 10;
    /**
     * 最大总数
     */
    private int maxTotal = 50;
    /**
     * 最小空闲
     */
    private int minIdle = 5;
    /**
     * 初始化
     */
    private int initialSize = 10;
}