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

com.github.ciweigg.properties.RedissonMultipleServerConfig Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version
package com.github.ciweigg.properties;

import lombok.Data;
import org.redisson.config.ReadMode;
import org.redisson.config.SubscriptionMode;

import java.util.ArrayList;
import java.util.List;

/**
 * 多节点配置
 */
@Data
public class RedissonMultipleServerConfig {

    private String loadBalancer = "org.redisson.connection.balancer.RoundRobinLoadBalancer";
    private Integer slaveConnectionMinimumIdleSize = 32;
    private Integer slaveConnectionPoolSize = 64;
    private Integer failedSlaveReconnectionInterval = 3000;
    private Integer failedSlaveCheckInterval = 180000;
    private Integer masterConnectionMinimumIdleSize = 32;
    private Integer masterConnectionPoolSize = 64;
    private ReadMode readMode=ReadMode.SLAVE;
    private SubscriptionMode subscriptionMode=SubscriptionMode.SLAVE;
    private Integer subscriptionConnectionMinimumIdleSize=1;
    private Integer subscriptionConnectionPoolSize=50;
    private Long dnsMonitoringInterval=5000L;

    private List nodeAddresses = new ArrayList();

    //集群,哨兵,云托管
    private Integer scanInterval = 1000;

    //哨兵模式,云托管,主从
    private Integer database = 0;

    //哨兵模式
    private String masterName;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy