Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.util.NamedThreadFactory Class Reference

Inherits ThreadFactory.

List of all members.

Public Member Functions

 NamedThreadFactory (String name)
 NamedThreadFactory (String name, boolean suffix)
Thread newThread (Runnable r)

Detailed Description

Thread Factory which assigns a given name + consecutive number to created threads if desired.


Constructor & Destructor Documentation

de.fu_berlin.inf.dpp.util.NamedThreadFactory.NamedThreadFactory ( String  name)

Creates a new ThreadFactory that will assign created threads the given name including a number suffix for each newly created thread.

Parameters:
namethe name to assign to new threads
Exceptions:
NullPointerExceptionif name is null
de.fu_berlin.inf.dpp.util.NamedThreadFactory.NamedThreadFactory ( String  name,
boolean  suffix 
)

Creates a new ThreadFactory that will assign created threads the given name including a number suffix for each newly created thread.

Parameters:
namethe name to assign to new threads
suffixif true the name will be suffixed by a number
Exceptions:
NullPointerExceptionif name is null

Member Function Documentation

Thread de.fu_berlin.inf.dpp.util.NamedThreadFactory.newThread ( Runnable  r)
 All Classes Namespaces Files Functions Variables Enumerations