public class AprEndpoint.Poller
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Field and Description | 
|---|---|
| protected int | actualPollerSizeActual poller size. | 
| protected AprEndpoint.SocketList | addListList of sockets to be added to the poller. | 
| protected long[] | descSocket descriptors. | 
| protected long | lastMaintainLast run of maintain. | 
| protected int | pollerCountAmount of low level pollers in use by this poller. | 
| protected long[] | pollersPointers to the pollers. | 
| protected int[] | pollerSpaceAmount of spots left in the poller. | 
| protected int | pollerTimeTimeout value for the poll call. | 
| protected long | poolRoot pool. | 
| protected AprEndpoint.SocketTimeouts | timeoutsStructure used for storing timeouts. | 
| Constructor and Description | 
|---|
| AprEndpoint.Poller() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | add(long socket,
int timeout,
boolean read,
boolean write)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 boolean | close(long socket) | 
| 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. | 
| protected void | stop() | 
| java.lang.String | toString()Displays the list of sockets in the pollers. | 
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.SocketTimeouts timeouts
protected long lastMaintain
public int getConnectionCount()
protected void init()
protected void stop()
protected void destroy()
public void add(long socket,
       int timeout,
       boolean read,
       boolean write)
socket - to add to the pollertimeout - to use for this connectionread - to do read pollingwrite - to do write pollingprotected boolean addToPoller(long socket,
                  int events)
run().protected boolean close(long socket)
protected void maintain()
public java.lang.String toString()
toString in class java.lang.Objectpublic void run()
run in interface java.lang.RunnableCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.