class com.codahale.metrics.ScheduledReporter$NamedThreadFactory implements java.util.concurrent.ThreadFactory
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.codahale.metrics.ScheduledReporter$NamedThreadFactory
super_class: java.lang.Object
{
private final java.lang.ThreadGroup group;
descriptor: Ljava/lang/ThreadGroup;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.atomic.AtomicInteger threadNumber;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String namePrefix;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 // com.codahale.metrics.ScheduledReporter$NamedThreadFactory this
start local 1 // java.lang.String name
0: .line 39
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 36
aload 0 /* this */
new java.util.concurrent.atomic.AtomicInteger
dup
iconst_1
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
putfield com.codahale.metrics.ScheduledReporter$NamedThreadFactory.threadNumber:Ljava/util/concurrent/atomic/AtomicInteger;
2: .line 40
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 2 /* s */
start local 2 // java.lang.SecurityManager s
3: .line 41
aload 0 /* this */
aload 2 /* s */
ifnull 4
aload 2 /* s */
invokevirtual java.lang.SecurityManager.getThreadGroup:()Ljava/lang/ThreadGroup;
goto 5
StackMap locals: com.codahale.metrics.ScheduledReporter$NamedThreadFactory java.lang.String java.lang.SecurityManager
StackMap stack: com.codahale.metrics.ScheduledReporter$NamedThreadFactory
4: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getThreadGroup:()Ljava/lang/ThreadGroup;
StackMap locals: com.codahale.metrics.ScheduledReporter$NamedThreadFactory java.lang.String java.lang.SecurityManager
StackMap stack: com.codahale.metrics.ScheduledReporter$NamedThreadFactory java.lang.ThreadGroup
5: putfield com.codahale.metrics.ScheduledReporter$NamedThreadFactory.group:Ljava/lang/ThreadGroup;
6: .line 42
aload 0 /* this */
new java.lang.StringBuilder
dup
ldc "metrics-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1 /* name */
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "-thread-"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield com.codahale.metrics.ScheduledReporter$NamedThreadFactory.namePrefix:Ljava/lang/String;
7: .line 43
return
end local 2 // java.lang.SecurityManager s
end local 1 // java.lang.String name
end local 0 // com.codahale.metrics.ScheduledReporter$NamedThreadFactory this
LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/codahale/metrics/ScheduledReporter$NamedThreadFactory;
0 8 1 name Ljava/lang/String;
3 8 2 s Ljava/lang/SecurityManager;
MethodParameters:
Name Flags
name
public java.lang.Thread newThread(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)Ljava/lang/Thread;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=2
start local 0 // com.codahale.metrics.ScheduledReporter$NamedThreadFactory this
start local 1 // java.lang.Runnable r
0: .line 47
new java.lang.Thread
dup
aload 0 /* this */
getfield com.codahale.metrics.ScheduledReporter$NamedThreadFactory.group:Ljava/lang/ThreadGroup;
aload 1 /* r */
new java.lang.StringBuilder
dup
aload 0 /* this */
getfield com.codahale.metrics.ScheduledReporter$NamedThreadFactory.namePrefix:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0 /* this */
getfield com.codahale.metrics.ScheduledReporter$NamedThreadFactory.threadNumber:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.getAndIncrement:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
lconst_0
invokespecial java.lang.Thread.<init>:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;J)V
astore 2 /* t */
start local 2 // java.lang.Thread t
1: .line 48
aload 2 /* t */
iconst_1
invokevirtual java.lang.Thread.setDaemon:(Z)V
2: .line 49
aload 2 /* t */
invokevirtual java.lang.Thread.getPriority:()I
iconst_5
if_icmpeq 4
3: .line 50
aload 2 /* t */
iconst_5
invokevirtual java.lang.Thread.setPriority:(I)V
4: .line 52
StackMap locals: java.lang.Thread
StackMap stack:
aload 2 /* t */
areturn
end local 2 // java.lang.Thread t
end local 1 // java.lang.Runnable r
end local 0 // com.codahale.metrics.ScheduledReporter$NamedThreadFactory this
LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/codahale/metrics/ScheduledReporter$NamedThreadFactory;
0 5 1 r Ljava/lang/Runnable;
1 5 2 t Ljava/lang/Thread;
MethodParameters:
Name Flags
r
}
SourceFile: "ScheduledReporter.java"
NestHost: com.codahale.metrics.ScheduledReporter
InnerClasses:
private NamedThreadFactory = com.codahale.metrics.ScheduledReporter$NamedThreadFactory of com.codahale.metrics.ScheduledReporter