rabbit.proxy
Class SelectorRunner

java.lang.Object
  extended by rabbit.proxy.SelectorRunner
All Implemented Interfaces:
Runnable

public class SelectorRunner
extends Object
implements Runnable

A class that handles a selector.

Author:
Robert Olofsson

Constructor Summary
SelectorRunner(TaskRunner tr, Logger logger)
           
 
Method Summary
 Selector getSelector()
           
 void run()
           
 void runSelectorTask(Runnable r)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectorRunner

public SelectorRunner(TaskRunner tr,
                      Logger logger)
               throws IOException
Throws:
IOException
Method Detail

start

public void start()

stop

public void stop()

getSelector

public Selector getSelector()

runSelectorTask

public void runSelectorTask(Runnable r)

run

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