|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--java.lang.Thread
|
+--HTTPClient.SocketTimeout
This thread is used to reap idle connections. It is NOT used to timeout reads or writes on a socket. It keeps a list of timer entries and expires them after a given time.
| Inner Class Summary |
| Type | Class |
|---|---|
(package private) class |
SocketTimeout.TimeoutEntry
This class represents a timer entry. |
| Field Summary |
| Type | Field |
|---|---|
(package private) int |
current
|
static int |
IDLE
|
(package private) SocketTimeout.TimeoutEntry[] |
time_list
|
| Fields inherited from class java.lang.Thread |
inheritableThreadLocals, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, threadLocals |
| Constructor Summary |
(package private) |
SocketTimeout()
|
| Method Summary |
| Type | Method |
|---|---|
void |
kill()
Stop the timer thread. |
(package private) void |
reallocate(int max)
|
void |
run()
This timer is implemented by sleeping for 1 second and then checking the timer list. |
SocketTimeout.TimeoutEntry |
setTimeout(StreamDemultiplexor demux,
int idle)
|
(package private) void |
writeTimeList()
|
| Methods inherited from class java.lang.Thread |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int IDLE
SocketTimeout.TimeoutEntry[] time_list
int current
| Constructor Detail |
SocketTimeout()
| Method Detail |
void writeTimeList()
void reallocate(int max)
public SocketTimeout.TimeoutEntry setTimeout(StreamDemultiplexor demux,
int idle)
public void run()
run in class java.lang.Threadpublic void kill()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||