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

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

public class ServerSocketChannelService.ConnectionHandlerThread
extends Object
implements Runnable

This class is executed in under the given executor. It serves to keep reference to socket connection and enclosing ServerSocketChannelService instance.


Field Summary
protected  Connection socketConnection
          Socket connection
protected  Thread thread
          Current thread
 
Constructor Summary
ServerSocketChannelService.ConnectionHandlerThread(Connection socketConnection)
          Constructor
 
Method Summary
 Connection getConnection()
          Returns socket 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

socketConnection

protected Connection socketConnection
Socket connection


thread

protected Thread thread
Current thread

Constructor Detail

ServerSocketChannelService.ConnectionHandlerThread

public ServerSocketChannelService.ConnectionHandlerThread(Connection socketConnection)
Constructor

Parameters:
socketConnection - socket connection
Method Detail

getConnection

public Connection getConnection()
Returns socket connection

Returns:
socket 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.