KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > threadpool > impl > ThreadFactoryIF


1 package org.exoplatform.services.threadpool.impl;
2
3 /**
4  * $Id: ThreadFactoryIF.java,v 1.1.1.1 2004/03/05 21:56:48 benjmestrallet Exp $
5  *
6  * The contents of this file are subject to the ClickBlocks Public
7  * License Version 1.0 (the "License"); you may not use this file
8  * except in compliance with the License. You may obtain a copy of
9  * the License at http://www.clickblocks.org
10  *
11  * Software distributed under the License is distributed on an "AS
12  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
13  * implied, including, but not limited to, the implied warranties of
14  * merchantability, fitness for a particular purpose and
15  * non-infringement. See the License for the specific language
16  * governing rights and limitations under the License.
17  *
18  * ClickBlocks, the ClickBlocks logo and combinations thereof are
19  * trademarks of ClickBlocks, LLC in the United States and other
20  * countries.
21  *
22  * The Initial Developer of the Original Code is ClickBlocks, LLC.
23  * Portions created by ClickBlocks, LLC are Copyright (C) 2000.
24  * All Rights Reserved.
25  *
26  * Contributor(s): Mark Grand
27  */

28
29 /**
30  * This interface in implemented by objects that create Thread
31  * objects. Classes that create Thread objects through this
32  * interface can be passed a ThreadFactoryIF object that
33  * creates an instance of Thread or a subclass of Thread with
34  * different properties.
35  */

36 public interface ThreadFactoryIF {
37     /**
38      * Return a Thread that runs the given Runnable object.
39      */

40     public Thread JavaDoc createThread(Runnable JavaDoc r);
41 } // interface ThreadFactoryIF
42
Popular Tags