|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tomcat.util.net.JIoEndpoint.Poller
public class JIoEndpoint.Poller
Poller class.
Field Summary | |
---|---|
protected JIoEndpoint.SocketList |
addList
List of sockets to be added to the poller. |
protected int |
connectionCount
Amount of connections inside this poller. |
protected long |
lastMaintain
Last run of maintain. |
protected JIoEndpoint.SocketList |
localAddList
List of sockets to be added to the poller. |
protected JIoEndpoint.SocketTimeouts |
timeouts
Structure used for storing timeouts. |
Constructor Summary | |
---|---|
JIoEndpoint.Poller()
|
Method Summary | |
---|---|
void |
add(java.net.Socket socket,
int timeout,
boolean resume,
boolean wakeup)
Add specified socket and associated pool to the poller. |
protected void |
destroy()
Destroy the poller. |
int |
getConnectionCount()
|
protected void |
init()
Create the poller. |
protected void |
maintain()
Timeout checks. |
void |
run()
The background thread that listens for incoming TCP/IP connections and hands them off to an appropriate processor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JIoEndpoint.SocketList addList
protected JIoEndpoint.SocketList localAddList
protected JIoEndpoint.SocketTimeouts timeouts
protected long lastMaintain
protected int connectionCount
Constructor Detail |
---|
public JIoEndpoint.Poller()
Method Detail |
---|
public int getConnectionCount()
protected void init()
protected void destroy()
public void add(java.net.Socket socket, int timeout, boolean resume, boolean wakeup)
socket
- to add to the pollerprotected void maintain()
public void run()
run
in interface java.lang.Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |