|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ThreadFactory
Interface for classes generating threads.
| Method Summary | |
|---|---|
java.lang.Thread |
createThread(java.lang.Runnable target)
Factory method to create Thread objects. |
void |
handleThrowable(java.lang.Throwable throwable)
Callback method if an Throwable occurs during starting a thread. |
void |
initThread()
Initialize resources of a new thread. |
void |
termThread()
Free resources of a new thread. |
| Method Detail |
|---|
java.lang.Thread createThread(java.lang.Runnable target)
The resulting object must not be of class Thread, but can
also be of any Class derived from class Thread.
target - the object whose run() method gets called
void initThread()
void termThread()
void handleThrowable(java.lang.Throwable throwable)
A component that uses a thread factory (e.g. a thread pool) can call this method to notify the thread factory about problems when creating a thread.
throwable - a throwable that occurred during starting a thread
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||