Voyager ORB

com.objectspace.voyager
Class ThreadManager

java.lang.Object
  |
  +--com.objectspace.voyager.ThreadManager

public class ThreadManager
extends java.lang.Object

ThreadManager contains static methods that allow modification of the internal thread pool limits. Voyager uses this thread pool to minimize creation and destruction of threads.

Version:
3.0

Method Summary
static int getMaxIdleThreads()
          Return the maximum number of threads Voyager can cache.
static void setMaxIdleThreads(int maxIdleThreads)
          Set the maximum number of threads Voyager can cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setMaxIdleThreads

public static void setMaxIdleThreads(int maxIdleThreads)
Set the maximum number of threads Voyager can cache. If the current cache is larger than the specified size, threads are removed from the idle cache and released.
Parameters:
maxIdleThreads - the maximum number of threads Voyager can cache.
Throws:
java.lang.IllegalArgumentException - maxThreads < 0

getMaxIdleThreads

public static int getMaxIdleThreads()
Return the maximum number of threads Voyager can cache.

ObjectSpace Inc.

(c) Copyright 1997-1999 ObjectSpace, Inc.
14850 Quorum Drive, Suite 500
Dallas, Texas 75240