pyrasun.eio.handlers
Class EIOEventHandler

java.lang.Object
  extended bypyrasun.eio.handlers.EIOEventHandler
Direct Known Subclasses:
GenericHandler, ProcessHandler, ReadHandler, WriteHandler

public abstract class EIOEventHandler
extends java.lang.Object

Internal handler for a particular I/O type. This does the internal work required for a given type and dispatches off to the application's EIOWorker.


Constructor Summary
EIOEventHandler()
           
EIOEventHandler(EIOEventDescriptor evd, EIOWorker worker)
           
 
Method Summary
 void blockeroo(Endpoint endpoint)
           
abstract  void dispatch(Endpoint endpoint)
           
abstract  void dispatch(ReadWriteEndpoint endpoint)
           
 EIOEvent event()
           
 boolean isDedicatedThread()
           
 void setEventDescriptor(EIOEventDescriptor evd)
           
 void setIsDedicatedThread(boolean isDedicatedThread)
           
 void setWorker(EIOWorker worker)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EIOEventHandler

public EIOEventHandler(EIOEventDescriptor evd,
                       EIOWorker worker)

EIOEventHandler

public EIOEventHandler()
Method Detail

setEventDescriptor

public void setEventDescriptor(EIOEventDescriptor evd)

setWorker

public void setWorker(EIOWorker worker)

setIsDedicatedThread

public void setIsDedicatedThread(boolean isDedicatedThread)

isDedicatedThread

public boolean isDedicatedThread()

dispatch

public abstract void dispatch(ReadWriteEndpoint endpoint)
                       throws java.io.IOException
Throws:
java.io.IOException

dispatch

public abstract void dispatch(Endpoint endpoint)
                       throws java.io.IOException
Throws:
java.io.IOException

blockeroo

public final void blockeroo(Endpoint endpoint)

event

public EIOEvent event()


Pyrasun EmberIO