org.openqa.jetty.util
Class ThreadPool.PoolThread
java.lang.Object
java.lang.Thread
org.openqa.jetty.util.ThreadPool.PoolThread
- All Implemented Interfaces:
- Runnable, Pool.PondLife
- Enclosing class:
- ThreadPool
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.
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield |
ThreadPool.PoolThread
public ThreadPool.PoolThread()
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
poolClosing
public void poolClosing()
- Specified by:
poolClosing
in interface Pool.PondLife
leavePool
public void leavePool()
- Specified by:
leavePool
in interface Pool.PondLife
run
public void run(ThreadPool pool,
Object job)
run
public void run()
- ThreadPool run. Loop getting jobs and handling them until idle or stopped.
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
toString
public String toString()
- Overrides:
toString
in class Thread
Copyright © 2012. All Rights Reserved.