|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.bea.domingo.threadpool.DefaultThreadFactory
public final class DefaultThreadFactory
Default implementation of the ThreadFactory interface.
| Constructor Summary | |
|---|---|
DefaultThreadFactory(DNotesMonitor theMonitor)
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultThreadFactory(DNotesMonitor theMonitor)
theMonitor - ThreadPool monitor
Default constructor.| Method Detail |
|---|
public 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.
createThread in interface ThreadFactorytarget - the object whose run() method gets called
ThreadFactory.createThread(java.lang.Runnable)public void initThread()
initThread in interface ThreadFactoryThreadFactory.initThread()public void termThread()
termThread in interface ThreadFactoryThreadFactory.termThread()public 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.
handleThrowable in interface ThreadFactorythrowable - a throwable that occurred during starting a threadThreadFactory.handleThrowable(java.lang.Throwable)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||