cn.structure.starter.redisson.properties.SentinelProperties 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;
import java.util.ArrayList;
import java.util.List;
/**
*
* 哨兵模式
*
*
* @author chuck
* @version 1.0.1
* @since 2020-12-23
*/
@Getter
@Setter
@ToString
public class SentinelProperties extends MultipleServerProperties {
/**
* 哨兵模式的地址
*/
private List sentinelAddresses = new ArrayList();
/**
* 哨兵模式的名字
*/
private String masterName;
/**
* 节点变化扫描间隔时间
*/
private int scanInterval = 1000;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy