DATAKV-66
+ add getter for database index on ConnectionFactories + update javadoc
This commit is contained in:
@@ -280,9 +280,19 @@ public class JedisConnectionFactory implements InitializingBean, DisposableBean,
|
||||
this.poolConfig = poolConfig;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns the index of the database.
|
||||
*
|
||||
* @return Returns the database index
|
||||
*/
|
||||
public int getDatabase() {
|
||||
return dbIndex;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the index of the database used by this connection factory.
|
||||
* Can be between 0 (default) and 15.
|
||||
* Default is 0.
|
||||
*
|
||||
* @param index database index
|
||||
*/
|
||||
|
||||
@@ -224,6 +224,15 @@ public class JredisConnectionFactory implements InitializingBean, DisposableBean
|
||||
usePool = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the index of the database.
|
||||
*
|
||||
* @return Returns the database index
|
||||
*/
|
||||
public int getDatabase() {
|
||||
return dbIndex;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the index of the database used by this connection factory.
|
||||
* Can be between 0 (default) and 15.
|
||||
|
||||
@@ -196,6 +196,15 @@ public class RjcConnectionFactory implements InitializingBean, DisposableBean, R
|
||||
this.usePool = usePool;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the index of the database.
|
||||
*
|
||||
* @return Returns the database index
|
||||
*/
|
||||
public int getDatabase() {
|
||||
return dbIndex;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the index of the database used by this connection factory.
|
||||
* Can be between 0 (default) and 15.
|
||||
|
||||
Reference in New Issue
Block a user