org.sblim.slp.internal

Class ThreadPool


public class ThreadPool
extends java.lang.Object

ThreadPool.java (C) Copyright IBM Corp. 2005, 2006 THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. You can obtain a current copy of the Common Public License from http://www.opensource.org/licenses/cpl1.0.php

Field Summary

protected Vector
iThreadPool

Method Summary

boolean
execute(Runnable task)
boolean
execute(Runnable pTask, boolean pEnqueue)
ThreadGroup
getGroup()
long
getIdleTimeOutMs()
static ThreadPool
getInstance()
protected void
removeThread(org.sblim.slp.internal.ThreadPool.Worker pWorker)
boolean
taskCompleted(org.sblim.slp.internal.ThreadPool.Worker pWorker, boolean pTimeout)

Field Details

iThreadPool

protected Vector iThreadPool

Method Details

execute

public boolean execute(Runnable task)

execute

public boolean execute(Runnable pTask,
                       boolean pEnqueue)

getGroup

public ThreadGroup getGroup()

getIdleTimeOutMs

public long getIdleTimeOutMs()

getInstance

public static ThreadPool getInstance()

removeThread

protected void removeThread(org.sblim.slp.internal.ThreadPool.Worker pWorker)

taskCompleted

public boolean taskCompleted(org.sblim.slp.internal.ThreadPool.Worker pWorker,
                             boolean pTimeout)

Copyright © 2005, 2007 IBM Corporation. All Rights Reserved.