Skip to content

Instantly share code, notes, and snippets.

@robertberry-zz
Created February 28, 2013 13:53
Show Gist options
  • Save robertberry-zz/5056877 to your computer and use it in GitHub Desktop.
Save robertberry-zz/5056877 to your computer and use it in GitHub Desktop.
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