org.indi.client
Class ServerHandler
java.lang.Object
org.indi.reactor.SimpleEventHandler
org.indi.reactor.OutputQueue
org.indi.client.ServerHandler
- All Implemented Interfaces:
- java.io.Closeable, java.lang.Runnable, java.nio.channels.Channel, java.nio.channels.WritableByteChannel, org.indi.reactor.EventHandler
public class ServerHandler
- extends org.indi.reactor.OutputQueue
- implements java.lang.Runnable
| Fields inherited from class org.indi.reactor.OutputQueue |
active, dead, queue |
| Fields inherited from class org.indi.reactor.SimpleEventHandler |
channel, reactor, registeredOperations |
|
Constructor Summary |
ServerHandler(org.indi.reactor.Reactor r,
java.nio.channels.SelectableChannel ch)
|
|
Method Summary |
void |
onRead()
|
void |
run()
|
void |
setQueue(java.util.Queue<java.lang.Object> toClientQueue)
|
| Methods inherited from class org.indi.reactor.OutputQueue |
close, isOpen, onClose, onWrite, write |
| Methods inherited from class org.indi.reactor.SimpleEventHandler |
channel, onAccept, onConnect, register |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerHandler
public ServerHandler(org.indi.reactor.Reactor r,
java.nio.channels.SelectableChannel ch)
throws java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
- Throws:
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
setQueue
public void setQueue(java.util.Queue<java.lang.Object> toClientQueue)
run
public void run()
- Specified by:
run in interface java.lang.Runnable
onRead
public void onRead()
throws java.io.IOException
- Specified by:
onRead in interface org.indi.reactor.EventHandler- Overrides:
onRead in class org.indi.reactor.SimpleEventHandler
- Throws:
java.io.IOException
Copyright © 2008. All Rights Reserved.