org.mortbay.util

Class ThreadPool.PoolThread

public static class ThreadPool.PoolThread extends Thread implements Pool.PondLife

Pool Thread class. The PoolThread allows the threads job to be retrieved and active status to be indicated.
Method Summary
voidenterPool(Pool pool, int id)
intgetID()
voidleavePool()
voidpoolClosing()
voidrun(ThreadPool pool, Object job)
voidrun()
ThreadPool run.
StringtoString()

Method Detail

enterPool

public void enterPool(Pool pool, int id)

getID

public int getID()

leavePool

public void leavePool()

poolClosing

public void poolClosing()

run

public void run(ThreadPool pool, Object job)

run

public void run()
ThreadPool run. Loop getting jobs and handling them until idle or stopped.

toString

public String toString()
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.