|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.abstracthorizon.danube.service.server.MultiThreadServerService.ConnectionHandlerThread
protected class MultiThreadServerService.ConnectionHandlerThread
This class is executed in under the given executor. It serves to keep
reference to server connection and enclosing MultiThreadServerService instance.
| Field Summary | |
|---|---|
protected Connection |
serverConnection
Server connection |
protected Thread |
thread
Current thread |
| Constructor Summary | |
|---|---|
MultiThreadServerService.ConnectionHandlerThread(Connection serverConnection)
Constructor |
|
| Method Summary | |
|---|---|
Connection |
getConnection()
Returns server connection |
Thread |
getThread()
Returns thread |
void |
run()
Handles connection invoking ConnectionHandler.handleConnection(org.abstracthorizon.danube.connection.Connection) method. |
void |
start()
Gives this object to the executor for execution |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Connection serverConnection
protected Thread thread
| Constructor Detail |
|---|
public MultiThreadServerService.ConnectionHandlerThread(Connection serverConnection)
serverConnection - server connection| Method Detail |
|---|
public Connection getConnection()
public Thread getThread()
public void start()
public void run()
ConnectionHandler.handleConnection(org.abstracthorizon.danube.connection.Connection) method.
run in interface Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||