public class AprEndpoint.Poller extends Object implements Runnable
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 |
close(long socket) |
protected void |
destroy()
Destroy the poller.
|
int |
getConnectionCount() |
protected void |
init()
Create the poller.
|
void |
run()
The background thread that listens for incoming TCP/IP connections
and hands them off to an appropriate processor.
|
protected void |
stop() |
String |
toString()
Displays the list of sockets in the pollers.
|
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 close(long socket)
public String toString()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.