Framework Professional Edition Package


com.prosyst.util.threadpool
Interface ThreadContext


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:


Method Summary
 java.lang.Runnable getRunnable()
          Returns the Runnable object provided in the ThreadPoolManager.execute(Runnable job, String threadName) method.
 

Method Detail

getRunnable

java.lang.Runnable getRunnable()
Returns the Runnable object provided in the ThreadPoolManager.execute(Runnable job, String threadName) method.


Framework Professional Edition Package


Copyright © 1999-2007 ProSyst Software GmbH. All Rights Reserved