org.smallmind.plumber.nio
Class SocketChannelWorker

java.lang.Object
  extended by org.smallmind.plumber.nio.SocketChannelWorker
All Implemented Interfaces:
Runnable, PooledComponent

public abstract class SocketChannelWorker
extends Object
implements PooledComponent, Runnable


Constructor Summary
SocketChannelWorker(Logger logger, ServerSocketChannelHerald herald)
           
 
Method Summary
 void run()
           
 void setChannel(ServerSocketChannel readyChannel)
           
abstract  void socketChannelWork(SocketChannel socketChannel)
           
 void terminate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketChannelWorker

public SocketChannelWorker(Logger logger,
                           ServerSocketChannelHerald herald)
Method Detail

setChannel

public void setChannel(ServerSocketChannel readyChannel)

socketChannelWork

public abstract void socketChannelWork(SocketChannel socketChannel)
                                throws Exception
Throws:
Exception

run

public void run()
Specified by:
run in interface Runnable

terminate

public void terminate()
Specified by:
terminate in interface PooledComponent


Copyright © 2012. All Rights Reserved.