JedisProperties.java 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. package com.kmall.manager.manager.redis;
  2. import java.io.Serializable;
  3. /**
  4. * @author Scott Chen
  5. * @since 1.0
  6. * 2018-09-27
  7. */
  8. public class JedisProperties implements Serializable {
  9. private static final long serialVersionUID = 8184312570045220343L;
  10. private String keyPrefix;
  11. private String host;
  12. private String port;
  13. private Pool pool;
  14. private String password;
  15. public String getPassword() {
  16. return password;
  17. }
  18. public void setPassword(String password) {
  19. this.password = password;
  20. }
  21. public String getKeyPrefix() {
  22. return keyPrefix;
  23. }
  24. public void setKeyPrefix(String keyPrefix) {
  25. this.keyPrefix = keyPrefix;
  26. }
  27. public String getHost() {
  28. return host;
  29. }
  30. public void setHost(String host) {
  31. this.host = host;
  32. }
  33. public String getPort() {
  34. return port;
  35. }
  36. public void setPort(String port) {
  37. this.port = port;
  38. }
  39. public Pool getPool() {
  40. return pool;
  41. }
  42. public void setPool(Pool pool) {
  43. this.pool = pool;
  44. }
  45. @Override
  46. public String toString() {
  47. return "JedisProperties{" +
  48. "keyPrefix='" + keyPrefix + '\'' +
  49. ", host='" + host + '\'' +
  50. ", port='" + port + '\'' +
  51. ", pool=" + pool +
  52. ", password='" + password + '\'' +
  53. '}';
  54. }
  55. public static class Pool {
  56. private String maxIdle;
  57. private String maxWait;
  58. private String maxTotal;
  59. private String testOnBorrow;
  60. public String getMaxIdle() {
  61. return maxIdle;
  62. }
  63. public void setMaxIdle(String maxIdle) {
  64. this.maxIdle = maxIdle;
  65. }
  66. public String getMaxWait() {
  67. return maxWait;
  68. }
  69. public void setMaxWait(String maxWait) {
  70. this.maxWait = maxWait;
  71. }
  72. public String getMaxTotal() {
  73. return maxTotal;
  74. }
  75. public void setMaxTotal(String maxTotal) {
  76. this.maxTotal = maxTotal;
  77. }
  78. public String getTestOnBorrow() {
  79. return testOnBorrow;
  80. }
  81. public void setTestOnBorrow(String testOnBorrow) {
  82. this.testOnBorrow = testOnBorrow;
  83. }
  84. @Override
  85. public String toString() {
  86. return "Pool{" +
  87. "maxIdle='" + maxIdle + '\'' +
  88. ", maxWait='" + maxWait + '\'' +
  89. ", maxTotal='" + maxTotal + '\'' +
  90. ", testOnBorrow='" + testOnBorrow + '\'' +
  91. '}';
  92. }
  93. }
  94. }