FileDocCategorySizeDatePackage
ContainerWorkPool.javaAPI DocGlassfish v2 API3516Fri May 04 22:33:00 BST 2007com.sun.ejb.containers.util

ContainerWorkPool

public class ContainerWorkPool extends Object
This class implements a singleton instance which is used by the container for its housekeeping tasks using the default threadpool of the appserver

Fields Summary
public static final Logger
_logger
Constructors Summary
Methods Summary
public static voidaddFirst(com.sun.enterprise.util.threadpool.Servicable ser)

        addLast(new WorkAdapter(ser));
    
public static voidaddFirst(com.sun.corba.ee.spi.orbutil.threadpool.Work work)

        addLast(work);
    
public static voidaddLast(com.sun.enterprise.util.threadpool.Servicable ser)


         
        addLast(new WorkAdapter(ser));
    
public static voidaddLast(com.sun.corba.ee.spi.orbutil.threadpool.Work work)

        ThreadPoolManager threadpoolMgr =
            S1ASThreadPoolManager.getThreadPoolManager();
        ThreadPool threadpool = threadpoolMgr.getDefaultThreadPool();
        threadpool.getAnyWorkQueue().addWork(work);