All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.flood.log.config.LogRestClientPoolProperties Maven / Gradle / Ivy

The newest version!
package cn.flood.log.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;

/**
 * es的httpClient连接池配置
 *
 * @author mmdai
 * @date 2020/3/28
 * 

*/ @Data @ConfigurationProperties(prefix = "flood.audit-log.es.rest-pool") @RefreshScope public class LogRestClientPoolProperties { /** * 链接建立超时时间 */ private Integer connectTimeOut = 1000; /** * 等待数据超时时间 */ private Integer socketTimeOut = 30000; /** * 连接池获取连接的超时时间 */ private Integer connectionRequestTimeOut = 500; /** * 最大连接数 */ private Integer maxConnectNum = 30; /** * 最大路由连接数 */ private Integer maxConnectPerRoute = 10; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy