net.sf.asyncobjects.net.threading
Class TSocketFactory

java.lang.Object
  extended by net.sf.asyncobjects.AsyncUnicastServer<ASocketFactory>
      extended by net.sf.asyncobjects.net.threading.TSocketFactory
All Implemented Interfaces:
AsyncObject, ExplicitSharing, ASocketFactory

public class TSocketFactory
extends AsyncUnicastServer<ASocketFactory>
implements ASocketFactory

A socket factory that creates thread based sockets

Author:
const

Method Summary
static ASocketFactory getInstance()
          This method created instance of TSocketFactory that lives inside daemon runner created with ExecutorRunner.newCachedRunner(String, Boolean).
static ASocketFactory getInstance(VatRunner runner)
          This method created instance of TSocketFactory that lives inside specified vatGroup
 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
 

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 socket
See Also:
ASocketFactory.makeSocket()

getInstance

public static ASocketFactory getInstance(VatRunner runner)
This method created instance of TSocketFactory that lives inside specified vatGroup

Parameters:
runner - a vat runner
Returns:
created instance

getInstance

public static ASocketFactory getInstance()
This method created instance of TSocketFactory that lives inside daemon runner created with ExecutorRunner.newCachedRunner(String, Boolean).

Returns:
created instance


Copyright 2002-2007 Constantine Plotnikov. All Rights Reserved.