net.sf.asyncobjects.net.nio
Class NIOSocketFactory

java.lang.Object
  extended by net.sf.asyncobjects.AsyncUnicastServer<ASocketFactory>
      extended by 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


Constructor Summary
NIOSocketFactory()
          a constructor
 
Method Summary
 Promise<AServerSocket> makeServerSocket()
           
 Promise<ASocket> makeSocket()
           
 
Methods inherited from class net.sf.asyncobjects.AsyncUnicastServer
dereference, export, isImmediate, myVat, promise
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.asyncobjects.AsyncObject
dereference, isImmediate
 

Constructor Detail

NIOSocketFactory

public NIOSocketFactory()
a constructor

Method Detail

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.