|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tomcat.util.net.AprEndpoint.Poller
public class AprEndpoint.Poller
Poller class.
Field Summary | |
---|---|
protected int |
actualPollerSize
Actual poller size. |
protected AprEndpoint.SocketList |
addList
List of sockets to be added to the poller. |
protected int |
connectionCount
Amount of connections inside this poller. |
protected long[] |
desc
Socket descriptors. |
protected boolean |
event
Event mode flag. |
protected long |
lastMaintain
Last run of maintain. |
protected AprEndpoint.SocketList |
localAddList
List of sockets to be added to the poller. |
protected int |
pollerCount
Amount of low level pollers in use by this poller. |
protected long[] |
pollers
Pointers to the pollers. |
protected int[] |
pollerSpace
Amount of spots left in the poller. |
protected int |
pollerTime
Timeout value for the poll call. |
protected long |
pool
Root pool. |
protected AprEndpoint.SocketTimeouts |
timeouts
Structure used for storing timeouts. |
Constructor Summary | |
---|---|
AprEndpoint.Poller(boolean event)
|
Method Summary | |
---|---|
void |
add(long socket)
Add specified socket and associated pool to the poller. |
void |
add(long socket,
int timeout,
boolean read,
boolean write,
boolean resume,
boolean wakeup)
Add specified socket and associated pool to the poller. |
protected boolean |
addToPoller(long socket,
int events)
Add specified socket to one of the pollers. |
protected void |
destroy()
Destroy the poller. |
int |
getConnectionCount()
|
protected void |
init()
Create the poller. |
protected void |
maintain()
Timeout checks. |
protected boolean |
removeFromPoller(long socket)
Remove specified socket from the pollers. |
void |
run()
The background thread that listens for incoming TCP/IP connections and hands them off to an appropriate processor. |
java.lang.String |
toString()
Displays the list of sockets in the pollers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected long[] pollers
protected int actualPollerSize
protected int[] pollerSpace
protected int pollerCount
protected int pollerTime
protected long pool
protected long[] desc
protected AprEndpoint.SocketList addList
protected AprEndpoint.SocketList localAddList
protected boolean event
protected AprEndpoint.SocketTimeouts timeouts
protected long lastMaintain
protected int connectionCount
Constructor Detail |
---|
public AprEndpoint.Poller(boolean event)
Method Detail |
---|
public int getConnectionCount()
protected void init()
protected void destroy()
public void add(long socket)
socket
- to add to the pollerpublic void add(long socket, int timeout, boolean read, boolean write, boolean resume, boolean wakeup)
socket
- to add to the pollertimeout
- to use for this connectionread
- to do read pollingwrite
- to do write pollingresume
- to send a callback eventprotected boolean addToPoller(long socket, int events)
protected boolean removeFromPoller(long socket)
protected void maintain()
public java.lang.String toString()
toString
in class java.lang.Object
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 |