org.apache.tomcat.util.net
protected class NioEndpoint.Worker extends java.lang.Object implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
available |
protected java.lang.Object |
socket |
protected SocketStatus |
status |
protected java.lang.Thread |
thread |
| Modifier | Constructor and Description |
|---|---|
protected |
NioEndpoint.Worker() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assign(java.lang.Object socket)
Process an incoming TCP/IP connection on the specified socket.
|
protected void |
assign(java.lang.Object socket,
SocketStatus status) |
protected java.lang.Object |
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 java.lang.Thread thread
protected boolean available
protected java.lang.Object socket
protected SocketStatus status
protected void assign(java.lang.Object socket)
socket - TCP socket to processprotected void assign(java.lang.Object socket,
SocketStatus status)
protected java.lang.Object await()
null
if we are supposed to shut down.public void run()
run in interface java.lang.Runnablepublic void start()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.