package com.zm.order.tool.server.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Description redis配置类
 * @Author: ph
 * @Date: 2019/10/30 16:59
 */
@ConfigurationProperties(prefix = "redis")
public class RedisProperty {

    /**
     * 主机
     */
    private String host;

    /**
     * 端口
     */
    private Integer port;

    /**
     * 密码
     */
    private String password;

    /**
     * db
     */
    private Integer db;

    /**
     * 超时时间
     */
    private Integer timeout;

    /**
     * 最小空闲连接数
     */
    private Integer minIdle;

    /**
     * 最大空闲连接数
     */
    private Integer maxIdle;

    /**
     * 最大连接数
     */
    private Integer maxActive;

    /**
     * 最大等待时间
     */
    private Integer maxWait;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getDb() {
        return db;
    }

    public void setDb(Integer db) {
        this.db = db;
    }

    public Integer getTimeout() {
        return timeout;
    }

    public void setTimeout(Integer timeout) {
        this.timeout = timeout;
    }

    public Integer getMinIdle() {
        return minIdle;
    }

    public void setMinIdle(Integer minIdle) {
        this.minIdle = minIdle;
    }

    public Integer getMaxIdle() {
        return maxIdle;
    }

    public void setMaxIdle(Integer maxIdle) {
        this.maxIdle = maxIdle;
    }

    public Integer getMaxActive() {
        return maxActive;
    }

    public void setMaxActive(Integer maxActive) {
        this.maxActive = maxActive;
    }

    public Integer getMaxWait() {
        return maxWait;
    }

    public void setMaxWait(Integer maxWait) {
        this.maxWait = maxWait;
    }
}
