cn.structure.starter.redisson.properties.SingleServerProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of structure-redisson-starter Show documentation
Show all versions of structure-redisson-starter Show documentation
封装 redisson 将封装成启动器,并且对分布式锁和缓存进行封装
The newest version!
package cn.structure.starter.redisson.properties;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
*
* 单节点配置属性
*
*
* @author chuck
* @version 1.0.1
* @since 2020-12-23
*/
@Setter
@Getter
@ToString
public class SingleServerProperties {
/**
* 单节点redis的地址
*/
private String address;
/**
* 订阅连接的最小空闲连接数
*/
private Integer subscriptionConnectionMinimumIdleSize = 1;
/**
* 订阅连接池大小
*/
private Integer subscriptionConnectionPoolSize = 50;
/**
* 最小空闲连接数
*/
private Integer connectionMinimumIdleSize = 32;
/**
* 连接池大小
*/
private Integer connectionPoolSize = 64;
/**
* DNS监控间隔,单位:毫秒
*/
private Long dnsMonitoringInterval = 5000L;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy