Skip to content

Commit

Permalink
More consistent debug logs; added annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
ok2c committed Jun 2, 2010
1 parent a2d5080 commit bb1a0db
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import org.apache.http.HttpHost;
import org.apache.http.params.HttpParams;
import org.apache.http.protocol.HttpContext;
import org.apache.http.annotation.NotThreadSafe;
import org.apache.http.conn.routing.HttpRoute;
import org.apache.http.conn.routing.RouteTracker;
import org.apache.http.conn.ClientConnectionOperator;
Expand All @@ -52,6 +53,7 @@
*
* @since 4.0
*/
@NotThreadSafe
public abstract class AbstractPoolEntry {

/** The connection operator. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

import java.lang.ref.ReferenceQueue;

import org.apache.http.annotation.NotThreadSafe;
import org.apache.http.conn.OperatedClientConnection;
import org.apache.http.conn.ClientConnectionOperator;
import org.apache.http.conn.routing.HttpRoute;
Expand All @@ -38,6 +39,7 @@
*
* @since 4.0
*/
@NotThreadSafe
public class BasicPoolEntry extends AbstractPoolEntry {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,9 @@ protected BasicPoolEntry getEntryBlocking(
}

if (log.isDebugEnabled()) {
log.debug("Total connections kept alive: " + freeConnections.size());
log.debug("Total issued connections: " + leasedConnections.size());
log.debug("Total allocated connection: " + numConnections + " out of " + maxTotalConnections);
log.debug("[" + route + "] kept alive: " + freeConnections.size() +
", issued: " + leasedConnections.size() +
", allocated: " + numConnections + " out of " + maxTotalConnections);
}

// the cases to check for:
Expand Down

0 comments on commit bb1a0db

Please sign in to comment.