Save This Page
Home » apache-tomcat-6.0.16-src » org.apache » tomcat » util » net » [javadoc | source]
org.apache.tomcat.util.net
class: MasterSlaveWorkerThread [javadoc | source]
java.lang.Object
   org.apache.tomcat.util.net.MasterSlaveWorkerThread

All Implemented Interfaces:
    Runnable

Regular master slave thread pool. Slave threads will wait for work.
Field Summary
protected  PoolTcpEndpoint endpoint     
protected  String threadName     
protected  boolean stopped     
Constructor:
 public MasterSlaveWorkerThread(PoolTcpEndpoint endpoint,
    String threadName) 
Method from org.apache.tomcat.util.net.MasterSlaveWorkerThread Summary:
assign,   run,   start,   stop
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tomcat.util.net.MasterSlaveWorkerThread Detail:
 synchronized  void assign(Socket socket) 
    Process an incoming TCP/IP connection on the specified socket. Any exception that occurs during processing must be logged and swallowed. NOTE: This method is called from our Connector's thread. We must assign it to our own thread so that multiple simultaneous requests can be handled.
 public  void run() 
    The background thread that listens for incoming TCP/IP connections and hands them off to an appropriate processor.
 public  void start() 
    Start the background processing thread.
 public  void stop() 
    Stop the background processing thread.