|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
de.jsystems.tools.thread.ThreadPool
Dieser Pool enthält eine Menge von Threads. Bei bedarf können diese aus dem Pool geholt werden. Sobald ein Thread fertig ist, wandert er automatisch wieder in den Bereitschaftsmodus.
Field Summary |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
ThreadPool()
Erzeugt den ThreadPool und legt zehn ThreadObjekt-Instanzen imn Pool an. |
Method Summary | |
(package private) void |
destroyThreadPool()
Beendet alle Threads innerhalb des Pools. |
ThreadObject |
getThread()
Gibt einen Thread aus dem Pool zurück. |
ThreadObject |
getThread(String name)
Sucht im Pool einen Thread mit dem übergebenen Namen. |
void |
run()
Methode aus der Elternklasse. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ThreadPool()
Method Detail |
void destroyThreadPool()
public ThreadObject getThread()
public ThreadObject getThread(String name)
name
- Der Name des gesuchten Threads
public void run()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |