| |
|
| java.lang.Object org.apache.tomcat.util.net.PoolTcpEndpoint
PoolTcpEndpoint | public class PoolTcpEndpoint (Code) | | Handle incoming TCP connections.
This class implement a simple server model: one listener thread accepts on a socket and
creates a new worker thread for each incoming connection.
More advanced Endpoints will reuse the threads, use queues, etc.
author: James Duncan Davidson [duncan@eng.sun.com] author: Jason Hunter [jch@eng.sun.com] author: James Todd [gonzo@eng.sun.com] author: Costin@eng.sun.com author: Gal Shachor [shachor@il.ibm.com] author: Yoav Shapira |
debug | final static int debug(Code) | | |
linger | protected int linger(Code) | | |
socketTimeout | protected int socketTimeout(Code) | | |
tcpNoDelay | protected boolean tcpNoDelay(Code) | | |
PoolTcpEndpoint | public PoolTcpEndpoint()(Code) | | |
closeServerSocket | protected void closeServerSocket()(Code) | | |
getBacklog | public int getBacklog()(Code) | | |
getMaxSpareThreads | public int getMaxSpareThreads()(Code) | | |
getMaxThreads | public int getMaxThreads()(Code) | | |
getMinSpareThreads | public int getMinSpareThreads()(Code) | | |
getPort | public int getPort()(Code) | | |
getServerSoTimeout | public int getServerSoTimeout()(Code) | | |
getSoLinger | public int getSoLinger()(Code) | | |
getSoTimeout | public int getSoTimeout()(Code) | | |
getTcpNoDelay | public boolean getTcpNoDelay()(Code) | | |
getThreadPriority | public int getThreadPriority()(Code) | | |
isPaused | public boolean isPaused()(Code) | | |
isPoolOn | public boolean isPoolOn()(Code) | | |
isRunning | public boolean isRunning()(Code) | | |
pauseEndpoint | public void pauseEndpoint()(Code) | | |
resumeEndpoint | public void resumeEndpoint()(Code) | | |
setBacklog | public void setBacklog(int backlog)(Code) | | Allows the server developer to specify the backlog that
should be used for server sockets. By default, this value
is 100.
|
setMaxSpareThreads | public void setMaxSpareThreads(int maxThreads)(Code) | | |
setMaxThreads | public void setMaxThreads(int maxThreads)(Code) | | |
setMinSpareThreads | public void setMinSpareThreads(int minThreads)(Code) | | |
setPoolOn | public void setPoolOn(boolean isPool)(Code) | | |
setPort | public void setPort(int port)(Code) | | |
setServerSoTimeout | public void setServerSoTimeout(int i)(Code) | | |
setServerTimeout | public void setServerTimeout(int timeout)(Code) | | Sets the timeout in ms of the server sockets created by this
server. This method allows the developer to make servers
more or less responsive to having their server sockets
shut down.
By default this value is 1000ms.
|
setSoLinger | public void setSoLinger(int i)(Code) | | |
setSoTimeout | public void setSoTimeout(int i)(Code) | | |
setTcpNoDelay | public void setTcpNoDelay(boolean b)(Code) | | |
setThreadPriority | public void setThreadPriority(int threadPriority)(Code) | | |
stopEndpoint | public void stopEndpoint()(Code) | | |
unlockAccept | protected void unlockAccept()(Code) | | |
|
|
|