com.cloud.platform.web.properties.RedissonProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloud-web-spring-boot-starter Show documentation
Show all versions of cloud-web-spring-boot-starter Show documentation
project for cloud-web-spring-boot-starter
The newest version!
package com.cloud.platform.web.properties;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* redisson配置类
*
* @author zhoushuai
* @date 2021-05-29
*/
@Data
@ConfigurationProperties(prefix = "cloud.web.redisson")
public class RedissonProperties {
/**
* 节点信息 host:port
*/
private String nodes;
/**
* 密码
*/
private String password;
/**
* 超时时间
*/
private Integer timeout = 3000;
/**
* 集群状态扫描间隔时间,单位是毫秒
*/
private Integer scanInterval = 1000;
/**
* 连接池大小
*/
private Integer connectionPoolSize = 64;
/**
* 最小空闲连接
*/
private Integer connectionMinimumIdleSize = 10;
private int pingConnectionInterval = 1000;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy