|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.http.impl.conn.tsccm.RouteSpecificPool
public class RouteSpecificPool
A connection sub-pool for a specific route, used by ConnPoolByRoute
.
The methods in this class are unsynchronized. It is expected that the
containing pool takes care of synchronization.
Constructor Summary | |
---|---|
RouteSpecificPool(HttpRoute r)
Creates a new route-specific pool. |
Method Summary | |
---|---|
BasicPoolEntry |
allocEntry()
Obtains a free entry from this pool, if one is available. |
void |
createdEntry(BasicPoolEntry entry)
Indicates creation of an entry for this pool. |
boolean |
deleteEntry(BasicPoolEntry entry)
Deletes an entry from this pool. |
void |
dropEntry()
Forgets about an entry from this pool. |
void |
freeEntry(BasicPoolEntry entry)
Returns an allocated entry to this pool. |
int |
getEntryCount()
Obtains the number of entries. |
HttpRoute |
getRoute()
Obtains the route for which this pool is specific. |
boolean |
isUnused()
Indicates whether this pool is unused. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RouteSpecificPool(HttpRoute r)
r
- the route for which to poolMethod Detail |
---|
public final HttpRoute getRoute()
public boolean isUnused()
true
if this pool is unused,
false
otherwisepublic final int getEntryCount()
public BasicPoolEntry allocEntry()
null
if there is nonepublic void freeEntry(BasicPoolEntry entry)
entry
- the entry obtained from allocEntry
or presented to createdEntry
public void createdEntry(BasicPoolEntry entry)
freeEntry
.
entry
- the entry that was created for this poolpublic boolean deleteEntry(BasicPoolEntry entry)
entry
- the entry to delete from this pool
true
if the entry was found and deleted, or
false
if the entry was not foundpublic void dropEntry()
allocated
from this pool has been lost and will not be returned.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |