public class ThreadFactory<T extends ThreadFactory<T>> extends Object
Constructor and Description |
---|
ThreadFactory(String key) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
String |
getKey() |
String |
groupName()
Specifies the name of a thread group to create for this thread factory.
|
T |
groupName(String value)
Specifies the name of a thread group to create for this thread factory.
|
String |
name()
The name of the created thread factory.
|
T |
name(String value)
The name of the created thread factory.
|
Integer |
priority()
May be used to specify the thread priority of created threads.
|
T |
priority(Integer value)
May be used to specify the thread priority of created threads.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
String |
threadNamePattern()
The template used to create names for threads.
|
T |
threadNamePattern(String value)
The template used to create names for threads.
|
public ThreadFactory(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public String groupName()
public T groupName(String value)
public String name()
public Integer priority()
public T priority(Integer value)
public String threadNamePattern()
public T threadNamePattern(String value)
Copyright © 2019 JBoss by Red Hat. All rights reserved.