org.exolab.jms.common.threads
Class ThreadFactory

java.lang.Object
  |
  +--org.exolab.jms.common.threads.ThreadFactory
All Implemented Interfaces:
EDU.oswego.cs.dl.util.concurrent.ThreadFactory

public class ThreadFactory
extends java.lang.Object
implements EDU.oswego.cs.dl.util.concurrent.ThreadFactory

Thread factory.

Version:
$Revision: 1.1 $ $Date: 2006/02/23 11:07:05 $
Author:
Tim Anderson

Constructor Summary
ThreadFactory(java.lang.ThreadGroup group, java.lang.String name, boolean daemon)
          Construct a new ThreadFactory
 
Method Summary
 java.lang.Thread newThread(java.lang.Runnable command)
          Create a new thread that will run the given command when started
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadFactory

public ThreadFactory(java.lang.ThreadGroup group,
                     java.lang.String name,
                     boolean daemon)
Construct a new ThreadFactory
Parameters:
group - the thread group. May be null
name - the name to prefix each thread name with
daemon - if true all threads will be daemon threads
Method Detail

newThread

public java.lang.Thread newThread(java.lang.Runnable command)
Create a new thread that will run the given command when started
Specified by:
newThread in interface EDU.oswego.cs.dl.util.concurrent.ThreadFactory
Parameters:
command - the command to run. May be null
Returns:
a new thread


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.