org.mortbay.util

Class ThreadPool.PoolThread

Enclosing Class:
ThreadPool
Implemented Interfaces:
Pool.PondLife

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

void
enterPool(Pool pool, int id)
int
getID()
void
leavePool()
void
poolClosing()
void
run()
ThreadPool run.
void
run(ThreadPool pool, Object job)
String
toString()

Method Details

enterPool

public void enterPool(Pool pool,
                      int id)
Specified by:
enterPool in interface Pool.PondLife

getID

public int getID()
Specified by:
getID in interface Pool.PondLife

leavePool

public void leavePool()
Specified by:
leavePool in interface Pool.PondLife

poolClosing

public void poolClosing()
Specified by:
poolClosing in interface Pool.PondLife

run

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

run

public void run(ThreadPool pool,
                Object job)

toString

public String toString()

Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.