creamtec.webcream.core
Class ThreadManager

java.lang.Object
  extended by creamtec.webcream.core.ThreadManager

public class ThreadManager
extends java.lang.Object

Manages associations between objects and WebCream threads


Constructor Summary
ThreadManager()
           
 
Method Summary
static ThreadManager getInstance()
          Returns the instance of ThreadManager, associated with this client
static WebCreamThread getMyThread(java.lang.Object obj)
          Returns WebCreamThread associated with the given object
static void setMyThread(java.lang.Object obj, WebCreamThread thread)
          Establishes association between the given object and the thread.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadManager

public ThreadManager()
Method Detail

getMyThread

public static WebCreamThread getMyThread(java.lang.Object obj)
Returns WebCreamThread associated with the given object

Parameters:
obj - Object
Returns:
WebCreamThread or null

setMyThread

public static void setMyThread(java.lang.Object obj,
                               WebCreamThread thread)
Establishes association between the given object and the thread. The association is used to lookup the instance of the client agent that owns the object.

Parameters:
obj - Object
thread - WebCreamThread

getInstance

public static ThreadManager getInstance()
Returns the instance of ThreadManager, associated with this client



Copyright © 2000-2006 CreamTec LLC. All Rights Reserved.