Document not thread safe

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@756315 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2009-03-20 02:42:48 +00:00
parent 322911cc02
commit df02f73742
1 changed files with 5 additions and 0 deletions

View File

@ -40,6 +40,9 @@ import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import net.jcip.annotations.GuardedBy;
import net.jcip.annotations.NotThreadSafe;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.http.conn.ConnectionPoolTimeoutException;
@ -57,6 +60,7 @@ import org.apache.http.impl.conn.IdleConnectionHandler;
*
* @since 4.0
*/
@NotThreadSafe // unsynch access to queues etc
public abstract class AbstractConnPool implements RefQueueHandler {
private final Log log = LogFactory.getLog(getClass());
@ -80,6 +84,7 @@ public abstract class AbstractConnPool implements RefQueueHandler {
protected IdleConnectionHandler idleConnHandler;
/** The current total number of connections. */
@GuardedBy("poolLock")
protected int numConnections;
/**