Additional top-level classes in compilation unit: KeepAliveKey, KeepAliveEntry.
Modifier and Type | Class and Description |
---|---|
pack-priv class |
Modifier and Type | Field and Description |
---|---|
private final ReentrantLock | |
private static final String | |
private Thread | |
pack-priv static final int | |
pack-priv static final PlatformLogger | |
pack-priv static final int | |
pack-priv static int | |
private static final long | |
private static final int | |
private static final int |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public HttpClient | |
pack-priv static int | |
private static int | |
pack-priv static int | |
public void | put(final URL
The URL contains info about the host and port url, Object obj, HttpClient The HttpClient to be cached http)Register this URL and HttpClient (that supports keep-alive) with the cache |
private void | readObject(ObjectInputStream
the stream stream)Hides java. Reconstitutes this map from a stream (that is, deserializes it). |
private void | |
public void | |
private void | writeObject(ObjectOutputStream
the stream stream)Hides java. Saves this map to a stream (that is, serializes it). |
cacheLock | back to summary |
---|---|
private final ReentrantLock cacheLock |
keepAliveProp | back to summary |
---|---|
private static final String keepAliveProp |
keepAliveTimer | back to summary |
---|---|
private Thread keepAliveTimer
|
LIFETIME | back to summary |
---|---|
pack-priv static final int LIFETIME |
logger | back to summary |
---|---|
pack-priv static final PlatformLogger logger |
MAX_CONNECTIONS | back to summary |
---|---|
pack-priv static final int MAX_CONNECTIONS |
result | back to summary |
---|---|
pack-priv static int result |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID Hides java. |
userKeepAliveProxy | back to summary |
---|---|
private static final int userKeepAliveProxy |
userKeepAliveServer | back to summary |
---|---|
private static final int userKeepAliveServer |
KeepAliveCache | back to summary |
---|---|
public KeepAliveCache() Constructor |
get | back to summary |
---|---|
public HttpClient get(URL url, Object obj) Check to see if this URL has a cached HttpClient |
getMaxConnections | back to summary |
---|---|
pack-priv static int getMaxConnections()
|
getUserKeepAlive | back to summary |
---|---|
private static int getUserKeepAlive(boolean isProxy) |
getUserKeepAliveSeconds | back to summary |
---|---|
pack-priv static int getUserKeepAliveSeconds(String type)
|
put | back to summary |
---|---|
public void put(final URL url, Object obj, HttpClient http) Register this URL and HttpClient (that supports keep-alive) with the cache
|
readObject | back to summary |
---|---|
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException Hides java. Doc from java. Reconstitutes this map from a stream (that is, deserializes it).
|
removeVector | back to summary |
---|---|
private void removeVector(KeepAliveKey k) |
run | back to summary |
---|---|
public void run() Implements java. Doc from java. Runs this operation.
|
writeObject | back to summary |
---|---|
private void writeObject(ObjectOutputStream stream) throws IOException Hides java. Doc from java. Saves this map to a stream (that is, serializes it).
|
Modifier and Type | Field and Description |
---|---|
pack-priv int | |
private static final long |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
pack-priv HttpClient | |
pack-priv HttpClient | |
private void | readObject(ObjectInputStream
the stream stream)Hides java. Reconstitutes this deque from a stream (that is, deserializes it). |
private void | writeObject(ObjectOutputStream
the stream stream)Hides java. Saves this deque to a stream (that is, serializes it). |
nap | back to summary |
---|---|
pack-priv int nap |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID Hides java. |
ClientVector | back to summary |
---|---|
pack-priv ClientVector(int nap) |
get | back to summary |
---|---|
pack-priv HttpClient get() |
put | back to summary |
---|---|
pack-priv HttpClient put(HttpClient h) |
readObject | back to summary |
---|---|
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException Hides java. Doc from java. Reconstitutes this deque from a stream (that is, deserializes it).
|
writeObject | back to summary |
---|---|
private void writeObject(ObjectOutputStream stream) throws IOException Hides java. Doc from java. Saves this deque to a stream (that is, serializes it).
|