|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.jeri.internal.http.HttpClientManager
public class HttpClientManager
Class for managing client-side functions shared among multiple connections (e.g., tracking of unsent response acknowledgments, caching of information about contacted HTTP servers).
Nested Class Summary | |
---|---|
private static class |
HttpClientManager.ServerKey
Server lookup key. |
Field Summary | |
---|---|
private SoftCache |
rolodex
|
private static Executor |
systemThreadPool
|
private TimedMap |
unsentAcks
|
Constructor Summary | |
---|---|
HttpClientManager(long ackTimeout)
Creates new HttpClientManager which expires unsent acknowledgments after the specified timeout. |
Method Summary | |
---|---|
(package private) void |
addUnsentAcks(String host,
int port,
String[] cookies)
Adds to list of unsent acknowledgments for server at given host/port. |
(package private) void |
cacheServerInfo(ServerInfo info)
Caches HTTP server information, overwriting any previously registered information for server if timestamp is more recent. |
void |
clearServerInfo()
Forgets all cached information about contacted HTTP servers. |
(package private) void |
clearUnsentAcks(String host,
int port,
String[] cookies)
Removes cookies from list of unsent acknowledgments for server at given host/port. |
(package private) ServerInfo |
getServerInfo(String host,
int port)
Returns cached information about specified HTTP server, or ServerInfo struct with default values if no entry found. |
(package private) String[] |
getUnsentAcks(String host,
int port)
Returns list of unsent acknowledgments for server at given host/port. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Executor systemThreadPool
private final SoftCache rolodex
private final TimedMap unsentAcks
Constructor Detail |
---|
public HttpClientManager(long ackTimeout)
Method Detail |
---|
public void clearServerInfo()
void addUnsentAcks(String host, int port, String[] cookies)
void clearUnsentAcks(String host, int port, String[] cookies)
String[] getUnsentAcks(String host, int port)
ServerInfo getServerInfo(String host, int port)
void cacheServerInfo(ServerInfo info)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |