pyrasun.eio
Interface EIOWorkerFactory

All Known Implementing Classes:
EIOAcceptWorkerFactory, EIOSocketWorkerFactory

public interface EIOWorkerFactory

Used to create EIO worker instances.


Method Summary
 EIOWorker createWorker(EIOEvent type)
          Create a worker of the given type
 EIOEvent[] supportedWorkerTypes()
          Returns an array of supported Event types for this factory.
 

Method Detail

createWorker

public EIOWorker createWorker(EIOEvent type)
                       throws java.lang.IllegalArgumentException
Create a worker of the given type

Throws:
java.lang.IllegalArgumentException
See Also:
for a list of valid types If the factory does not support a given worker type, it should throw an IllegalArgumentException

supportedWorkerTypes

public EIOEvent[] supportedWorkerTypes()
Returns an array of supported Event types for this factory.



Pyrasun EmberIO