|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
/*
|
|
|
|
|
* Copyright 2012-2014 the original author or authors.
|
|
|
|
|
* Copyright 2012-2015 the original author or authors.
|
|
|
|
|
*
|
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
@ -48,14 +48,22 @@ public class RedisProperties {
|
|
|
|
|
*/
|
|
|
|
|
private int port = 6379;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Connection timeout in milliseconds.
|
|
|
|
|
*/
|
|
|
|
|
private int timeout;
|
|
|
|
|
|
|
|
|
|
private Pool pool;
|
|
|
|
|
|
|
|
|
|
private Sentinel sentinel;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Timeout to set in milliseconds.
|
|
|
|
|
*/
|
|
|
|
|
private int timeout;
|
|
|
|
|
public int getDatabase() {
|
|
|
|
|
return this.database;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setDatabase(int database) {
|
|
|
|
|
this.database = database;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getHost() {
|
|
|
|
|
return this.host;
|
|
|
|
@ -65,14 +73,6 @@ public class RedisProperties {
|
|
|
|
|
this.host = host;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getPort() {
|
|
|
|
|
return this.port;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setPort(int port) {
|
|
|
|
|
this.port = port;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getPassword() {
|
|
|
|
|
return this.password;
|
|
|
|
|
}
|
|
|
|
@ -81,36 +81,36 @@ public class RedisProperties {
|
|
|
|
|
this.password = password;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Pool getPool() {
|
|
|
|
|
return this.pool;
|
|
|
|
|
public int getPort() {
|
|
|
|
|
return this.port;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setPool(Pool pool) {
|
|
|
|
|
this.pool = pool;
|
|
|
|
|
public void setPort(int port) {
|
|
|
|
|
this.port = port;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getDatabase() {
|
|
|
|
|
return this.database;
|
|
|
|
|
public void setTimeout(int timeout) {
|
|
|
|
|
this.timeout = timeout;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setDatabase(int database) {
|
|
|
|
|
this.database = database;
|
|
|
|
|
public int getTimeout() {
|
|
|
|
|
return this.timeout;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Sentinel getSentinel() {
|
|
|
|
|
return this.sentinel;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setTimeout(int timeout) {
|
|
|
|
|
this.timeout = timeout;
|
|
|
|
|
public void setSentinel(Sentinel sentinel) {
|
|
|
|
|
this.sentinel = sentinel;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getTimeout() {
|
|
|
|
|
return this.timeout;
|
|
|
|
|
public Pool getPool() {
|
|
|
|
|
return this.pool;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setSentinel(Sentinel sentinel) {
|
|
|
|
|
this.sentinel = sentinel;
|
|
|
|
|
public void setPool(Pool pool) {
|
|
|
|
|
this.pool = pool;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|