io.github.linmoure.config.properties.RedisProperties Maven / Gradle / Ivy
package io.github.linmoure.config.properties;
import lombok.Data;
@Data
public class RedisProperties {
private Integer database;
private String host;
private Integer port;
private String password;
private Lettuce lettuce;
public RedisProperties(Integer database, String host, Integer port, String password, Lettuce lettuce) {
this.database = database;
this.host = host;
this.port = port;
this.password = password;
this.lettuce = lettuce;
}
@Data
public static class Lettuce {
private Long shutdownTimeOut;
private Pool pool;
public Lettuce(Long shutdownTimeOut, Pool pool) {
this.shutdownTimeOut = shutdownTimeOut;
this.pool = pool;
}
@Data
public static class Pool {
private Integer maxIdle;
private Integer minIdle;
private Integer maxActive;
private Long maxWait;
public Pool(Integer maxIdle, Integer minIdle, Integer maxActive, Long maxWait) {
this.maxIdle = maxIdle;
this.minIdle = minIdle;
this.maxActive = maxActive;
this.maxWait = maxWait;
}
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy