final public int getConnectionCount ( ) { int total = 0 ; synchronized ( poolLock ) { for ( PooledConnection < C > pooledConnection : allConnections ) { if ( pooledConnection . connection != null ) total ++ ; } } return total ; }
Gets the number of connections currently connected .