File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -57,14 +57,18 @@ else if (Objects.nonNull(connectionPool)) {
57
57
}
58
58
}
59
59
60
- public int getActiveConnections () {
60
+ public int getActiveConnectionsCount () {
61
61
return connectionPool .getCount (false );
62
62
}
63
63
64
- public int getIdleConnections () {
64
+ public int getIdleConnectionsCount () {
65
65
return connectionPool .getCount (true );
66
66
}
67
67
68
+ public int getTotalConnectionsCount () {
69
+ return connectionPool .getTotalCount ();
70
+ }
71
+
68
72
public void close () {
69
73
if (Objects .nonNull (connectionPool ))
70
74
connectionPool .close ();
@@ -119,6 +123,10 @@ int getCount(boolean isIdle) {
119
123
return count ;
120
124
}
121
125
126
+ int getTotalCount () {
127
+ return poolEntries .size ();
128
+ }
129
+
122
130
void close () {
123
131
if (!this .isShutdown .getAndSet (true )) {
124
132
log .info ("Closing the connection pool......" );
You can’t perform that action at this time.
0 commit comments