public class LazyThreadFactory extends DefaultThreadFactory
address, baseName, clusterName, counter, createDaemons, includeClusterName, includeLocalAddress, use_numbering
Constructor and Description |
---|
LazyThreadFactory(java.lang.String baseName,
boolean createDaemons,
boolean use_numbering) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
changeName(java.lang.String name)
Replaces "
|
void |
destroy() |
java.lang.String |
dumpThreads() |
java.lang.Thread |
newThread(java.lang.Runnable r) |
java.lang.Thread |
newThread(java.lang.Runnable r,
java.lang.String name) |
java.lang.Thread |
newThread(java.lang.ThreadGroup group,
java.lang.Runnable r,
java.lang.String name) |
void |
removeTerminatedThreads() |
protected void |
renameThreads() |
void |
setAddress(java.lang.String address) |
void |
setClusterName(java.lang.String cluster_name) |
int |
size() |
getNewThreadName, getThreadName, newThread, renameThread, renameThread, renameThread, setIncludeClusterName, setPattern
public LazyThreadFactory(java.lang.String baseName, boolean createDaemons, boolean use_numbering)
public java.lang.Thread newThread(java.lang.Runnable r, java.lang.String name)
newThread
in class DefaultThreadFactory
public java.lang.Thread newThread(java.lang.Runnable r)
newThread
in interface java.util.concurrent.ThreadFactory
newThread
in class DefaultThreadFactory
public java.lang.Thread newThread(java.lang.ThreadGroup group, java.lang.Runnable r, java.lang.String name)
newThread
in class DefaultThreadFactory
public void setAddress(java.lang.String address)
setAddress
in class DefaultThreadFactory
public void setClusterName(java.lang.String cluster_name)
setClusterName
in class DefaultThreadFactory
public int size()
public void destroy()
public void removeTerminatedThreads()
public java.lang.String dumpThreads()
protected void renameThreads()
protected java.lang.String changeName(java.lang.String name)
Copyright © 1998-2020 Red Hat. All Rights Reserved.