org.apache.tomcat.util.net
public class PoolTcpEndpoint extends Object implements Runnable
Field Summary | |
---|---|
protected int | linger |
protected int | socketTimeout |
protected boolean | tcpNoDelay |
Constructor Summary | |
---|---|
PoolTcpEndpoint() | |
PoolTcpEndpoint(ThreadPool tp) |
Method Summary | |
---|---|
protected void | closeServerSocket() |
InetAddress | getAddress() |
int | getBacklog() |
TcpConnectionHandler | getConnectionHandler() |
int | getCurrentThreadCount() |
int | getCurrentThreadsBusy() |
int | getMaxSpareThreads() |
int | getMaxThreads() |
int | getMinSpareThreads() |
int | getPort() |
int | getServerSoTimeout() |
int | getSoLinger() |
int | getSoTimeout() |
String | getStrategy() |
boolean | getTcpNoDelay() |
int | getThreadPriority() |
void | initEndpoint() |
boolean | isPaused() |
boolean | isRunning() |
void | pauseEndpoint() |
void | resumeEndpoint() |
void | run()
The background thread that listens for incoming TCP/IP connections and
hands them off to an appropriate processor. |
void | setAddress(InetAddress inet) |
void | setBacklog(int backlog)
Allows the server developer to specify the backlog that
should be used for server sockets. |
void | setConnectionHandler(TcpConnectionHandler handler) |
void | setMaxSpareThreads(int maxThreads) |
void | setMaxThreads(int maxThreads) |
void | setMinSpareThreads(int minThreads) |
void | setPort(int port) |
void | setServerSocket(ServerSocket ss) |
void | setServerSocketFactory(ServerSocketFactory factory) |
void | setServerSoTimeout(int i) |
void | setServerTimeout(int timeout)
Sets the timeout in ms of the server sockets created by this
server. |
void | setSoLinger(int i) |
void | setSoTimeout(int i) |
void | setStrategy(String strategy) |
void | setTcpNoDelay(boolean b) |
void | setThreadPriority(int threadPriority) |
void | startEndpoint() |
void | stopEndpoint() |
protected void | unlockAccept() |
By default this value is 1000ms.