org.abstracthorizon.danube.service.server
Class MultiThreadServerService.ConnectionHandlerThread

java.lang.Object
  extended by org.abstracthorizon.danube.service.server.MultiThreadServerService.ConnectionHandlerThread
All Implemented Interfaces:
Runnable
Enclosing class:
MultiThreadServerService

protected class MultiThreadServerService.ConnectionHandlerThread
extends Object
implements Runnable

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

serverConnection

protected Connection serverConnection
Server connection


thread

protected Thread thread
Current thread

Constructor Detail

MultiThreadServerService.ConnectionHandlerThread

public MultiThreadServerService.ConnectionHandlerThread(Connection serverConnection)
Constructor

Parameters:
serverConnection - server connection
Method Detail

getConnection

public Connection getConnection()
Returns server connection

Returns:
server connection

getThread

public Thread getThread()
Returns thread

Returns:
thread

start

public void start()
Gives this object to the executor for execution


run

public void run()
Handles connection invoking ConnectionHandler.handleConnection(org.abstracthorizon.danube.connection.Connection) method.

Specified by:
run in interface Runnable


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.