123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- package com.kmall.manager.manager.redis;
- import java.io.Serializable;
- /**
- * @author Scott Chen
- * @since 1.0
- * 2018-09-27
- */
- public class JedisProperties implements Serializable {
- private static final long serialVersionUID = 8184312570045220343L;
- private String keyPrefix;
- private String host;
- private String port;
- private Pool pool;
- private String password;
- public String getPassword() {
- return password;
- }
- public void setPassword(String password) {
- this.password = password;
- }
- public String getKeyPrefix() {
- return keyPrefix;
- }
- public void setKeyPrefix(String keyPrefix) {
- this.keyPrefix = keyPrefix;
- }
- public String getHost() {
- return host;
- }
- public void setHost(String host) {
- this.host = host;
- }
- public String getPort() {
- return port;
- }
- public void setPort(String port) {
- this.port = port;
- }
- public Pool getPool() {
- return pool;
- }
- public void setPool(Pool pool) {
- this.pool = pool;
- }
- @Override
- public String toString() {
- return "JedisProperties{" +
- "keyPrefix='" + keyPrefix + '\'' +
- ", host='" + host + '\'' +
- ", port='" + port + '\'' +
- ", pool=" + pool +
- ", password='" + password + '\'' +
- '}';
- }
- public static class Pool {
- private String maxIdle;
- private String maxWait;
- private String maxTotal;
- private String testOnBorrow;
- public String getMaxIdle() {
- return maxIdle;
- }
- public void setMaxIdle(String maxIdle) {
- this.maxIdle = maxIdle;
- }
- public String getMaxWait() {
- return maxWait;
- }
- public void setMaxWait(String maxWait) {
- this.maxWait = maxWait;
- }
- public String getMaxTotal() {
- return maxTotal;
- }
- public void setMaxTotal(String maxTotal) {
- this.maxTotal = maxTotal;
- }
- public String getTestOnBorrow() {
- return testOnBorrow;
- }
- public void setTestOnBorrow(String testOnBorrow) {
- this.testOnBorrow = testOnBorrow;
- }
- @Override
- public String toString() {
- return "Pool{" +
- "maxIdle='" + maxIdle + '\'' +
- ", maxWait='" + maxWait + '\'' +
- ", maxTotal='" + maxTotal + '\'' +
- ", testOnBorrow='" + testOnBorrow + '\'' +
- '}';
- }
- }
- }
|