org.apache.tomcat.util.net
Class AprEndpoint.Worker
protected
class
AprEndpoint.Worker
extends Object
implements Runnable
Server processor class.
Method Summary |
protected void | assign(long socket)
Process an incoming TCP/IP connection on the specified socket. |
protected void | assign(long socket, SocketStatus status) |
protected void | assignWithOptions(long socket)
Process an incoming TCP/IP connection on the specified socket. |
protected long | await()
Await a newly assigned Socket from our Connector, or null
if we are supposed to shut down. |
void | run()
The background thread that listens for incoming TCP/IP connections and
hands them off to an appropriate processor. |
void | start()
Start the background processing thread. |
protected boolean available
protected boolean options
protected long socket
protected Thread thread
protected void assign(long 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.
Parameters: socket TCP socket to process
protected void assignWithOptions(long 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.
Parameters: socket TCP socket to process
protected long await()
Await a newly assigned Socket from our Connector, or null
if we are supposed to shut down.
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.
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.