站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 server API Documentation 英文版文档

ThreadPool (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档


org.jboss.web
Class ThreadPool

java.lang.Object
  extended byorg.jboss.web.ThreadPool

public class ThreadPool
extends Object

A simple thread pool. Rickard 锟絙erg

Version:
$Revision: 1.9 $

Constructor Summary
ThreadPool()
          Create a new pool.
 
Method Summary
 void disable()
           
 void enable()
           
 void run(Runnable work)
          Do some work.
 void setMaximumSize(int size)
          Set the maximum number of idle threads cached in this pool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadPool

public ThreadPool()
Create a new pool.

Method Detail

enable

public void enable()

disable

public void disable()

setMaximumSize

public void setMaximumSize(int size)
Set the maximum number of idle threads cached in this pool.


run

public void run(Runnable work)
Do some work. This will either create a new thread to do the work, or use an existing idle cached thread.



Copyright © 2002 JBoss Group, LLC. All Rights Reserved.