Top Description Fields Constructors Methods
org.jboss.threads

pack-priv final Class ThreadNameInfo

extends Object
Class Inheritance
Imports
java.util.regex.Pattern, .Matcher

Thread name information.

Field Summary

Modifier and TypeField and Description
private final long
private final long
private final long
private static final Pattern

Constructor Summary

AccessConstructor and Description
pack-priv
ThreadNameInfo(final long globalThreadSequenceNum, final long perFactoryThreadSequenceNum, final long factorySequenceNum)

Method Summary

Modifier and TypeMethod and Description
private static void
public String

Returns:

the thread name string
format
(Thread
the thread
thread
,
String
the format string
formatString
)

Format the thread name string.

public long
public long
public long
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

factorySequenceNumback to summary
private final long factorySequenceNum
globalThreadSequenceNumback to summary
private final long globalThreadSequenceNum
perFactoryThreadSequenceNumback to summary
private final long perFactoryThreadSequenceNum
searchPatternback to summary
private static final Pattern searchPattern

Constructor Detail

ThreadNameInfoback to summary
pack-priv ThreadNameInfo(final long globalThreadSequenceNum, final long perFactoryThreadSequenceNum, final long factorySequenceNum)

Method Detail

appendGroupPathback to summary
private static void appendGroupPath(ThreadGroup group, StringBuilder builder)
formatback to summary
public String format(Thread thread, String formatString)

Format the thread name string.

  • %% - emit a percent sign
  • %t - emit the per-factory thread sequence number
  • %g - emit the global thread sequence number
  • %f - emit the factory sequence number
  • %p - emit the ":"-separated thread group path
  • %i - emit the thread ID
  • %G - emit the thread group name
Parameters
thread:Thread

the thread

formatString:String

the format string

Returns:String

the thread name string

getFactorySequenceNumback to summary
public long getFactorySequenceNum()
getGlobalThreadSequenceNumback to summary
public long getGlobalThreadSequenceNum()
getPerFactoryThreadSequenceNumback to summary
public long getPerFactoryThreadSequenceNum()