Created
February 28, 2013 13:53
-
-
Save robertberry-zz/5056877 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MultiThreadedHttpConnectionManager implements HttpConnectionManager { | |
/** | |
* Gets the total number of pooled connections. This is the total number of | |
* connections that have been created and are still in use by this connection | |
* manager. This value will not exceed the {@link #getMaxTotalConnections() | |
* maximum number of connections}. | |
* | |
* @return the total number of pooled connections | |
*/ | |
public int getConnectionsInPool() { | |
synchronized (connectionPool) { | |
return connectionPool.numConnections; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment