de.hunsicker.util.concurrent.ThreadFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jalopy Show documentation
Show all versions of jalopy Show documentation
A source code formatter/beautifier/pretty printer for the Java programming language.
The newest version!
/*
* Copyright (c) 2001-2002, Marco Hunsicker. All rights reserved.
*
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*/
package de.hunsicker.util.concurrent;
/**
* Interface describing any class that can generate new Thread objects. Using
* ThreadFactories removes hardwiring of calls to new Thread
, enabling
* applications to use special thread subclasses, default prioritization settings, etc.
*
*
* This class was taken from the util.concurrent package written by Doug Lea. See http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/intro.html
* for an introduction to this package.
*
*
* @author Doug Lea
*/
public interface ThreadFactory
{
//~ Methods --------------------------------------------------------------------------
/**
* Create a new thread that will run the given command when started
*
* @param command DOCUMENT ME!
*
* @return DOCUMENT ME!
*/
public Thread newThread(Runnable command);
}