|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ThreadContext
Gives access to the user-provided Runnable object of the thread.
All threads created by the ThreadPoolManager service implement that interface, so that
in a method called by such a thread you can get the Runnable object provided in
ThreadPoolManager.execute(Runnable job, String threadName) with the following line:
Runnable runnable = ((ThreadContext) Thread.currentThread()).getRunnable();
| Method Summary | |
|---|---|
java.lang.Runnable |
getRunnable()
Returns the Runnable object provided in the ThreadPoolManager.execute(Runnable job, String threadName)
method. |
| Method Detail |
|---|
java.lang.Runnable getRunnable()
ThreadPoolManager.execute(Runnable job, String threadName)
method.
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||