net.sf.asyncobjects.net.nio
Class NIOSocketFactory
java.lang.Object
net.sf.asyncobjects.AsyncUnicastServer<ASocketFactory>
net.sf.asyncobjects.net.nio.NIOSocketFactory
- All Implemented Interfaces:
- AsyncObject, ExplicitSharing, ASocketFactory
public class NIOSocketFactory
- extends AsyncUnicastServer<ASocketFactory>
- implements ASocketFactory
NIO socket factory, this factory could be created only in context of NIO
selector vat. It could be a good idea to dedicate such vat only to network
IO. There could be several NIO selector vats in one JVM
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NIOSocketFactory
public NIOSocketFactory()
- a constructor
makeServerSocket
public Promise<AServerSocket> makeServerSocket()
- Specified by:
makeServerSocket
in interface ASocketFactory
- Returns:
- created server socket
- See Also:
ASocketFactory.makeServerSocket()
makeSocket
public Promise<ASocket> makeSocket()
- Specified by:
makeSocket
in interface ASocketFactory
- Returns:
- created created socket
- See Also:
ASocketFactory.makeSocket()
Copyright © 2002-2007 Constantine Plotnikov. All Rights Reserved.