KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > ubik > net > ThreadFactory


1 package org.sapia.ubik.net;
2
3
4 /**
5  * This interface specifies the behavior of a factory of thread.
6  *
7  * @author Yanick Duchesne
8  * <dl>
9  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
10  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
11  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
12  * </dl>
13  */

14 public interface ThreadFactory {
15   /**
16    * Given a <code>Runnable</code> instance, this method returns
17    * a <code>Thread</code> instance which encapsulates the given
18    * runnable. The returned thread is not started.
19    *
20    * @return a <code>Thread</code> instance wrapping the given <code>Runnable</code>.
21    */

22   public Thread JavaDoc newThreadFor(Runnable JavaDoc r);
23 }
24
Popular Tags