Allow the Pool to be constructed without having an internal pool created.

This is useful when extending the Pool without being able to create one at
construction time.
This commit is contained in:
Hisham Mardam-Bey
2013-08-21 00:06:30 -04:00
parent 625e2235fd
commit ed80e7ce70

View File

@@ -9,7 +9,11 @@ import redis.clients.jedis.exceptions.JedisException;
public abstract class Pool<T> {
protected GenericObjectPool internalPool;
protected Pool() {
/**
* Using this constructor means you have to set
* the internalPool yourself.
*/
public Pool() {
this.internalPool = null;
}