protected class JIoEndpoint.Worker
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
available |
protected java.net.Socket |
socket |
protected SocketStatus |
status |
protected java.lang.Thread |
thread |
| Modifier | Constructor and Description |
|---|---|
protected |
JIoEndpoint.Worker() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assign(java.net.Socket socket)
Process an incoming TCP/IP connection on the specified socket.
|
protected void |
assign(java.net.Socket socket,
SocketStatus status) |
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.net.Socket socket
protected SocketStatus status
protected void assign(java.net.Socket socket)
socket - TCP socket to processprotected void assign(java.net.Socket socket,
SocketStatus status)
public void run()
run in interface java.lang.Runnablepublic void start()