Closes #656. Add a getNumActive() method to JedisPool to provide access to the current state of the internal pool.
This commit is contained in:
@@ -98,4 +98,12 @@ public class JedisPool extends Pool<Jedis> {
|
||||
returnResourceObject(resource);
|
||||
}
|
||||
}
|
||||
|
||||
public int getNumActive() {
|
||||
if (this.internalPool == null || this.internalPool.isClosed()) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return this.internalPool.getNumActive();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user