public class io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder
super_class: java.lang.Object
{
private static final java.util.concurrent.atomic.AtomicLong COUNT;
descriptor: Ljava/util/concurrent/atomic/AtomicLong;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final io.dropwizard.lifecycle.setup.LifecycleEnvironment environment;
descriptor: Lio/dropwizard/lifecycle/setup/LifecycleEnvironment;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String nameFormat;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int poolSize;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.util.concurrent.ThreadFactory threadFactory;
descriptor: Ljava/util/concurrent/ThreadFactory;
flags: (0x0002) ACC_PRIVATE
private io.dropwizard.util.Duration shutdownTime;
descriptor: Lio/dropwizard/util/Duration;
flags: (0x0002) ACC_PRIVATE
private java.util.concurrent.RejectedExecutionHandler handler;
descriptor: Ljava/util/concurrent/RejectedExecutionHandler;
flags: (0x0002) ACC_PRIVATE
private boolean removeOnCancel;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: new java.util.concurrent.atomic.AtomicLong
dup
lconst_0
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:(J)V
putstatic io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder.COUNT:Ljava/util/concurrent/atomic/AtomicLong;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(io.dropwizard.lifecycle.setup.LifecycleEnvironment, java.lang.String, java.util.concurrent.ThreadFactory);
descriptor: (Lio/dropwizard/lifecycle/setup/LifecycleEnvironment;Ljava/lang/String;Ljava/util/concurrent/ThreadFactory;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder.environment:Lio/dropwizard/lifecycle/setup/LifecycleEnvironment;
2: aload 0
aload 2
putfield io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder.nameFormat:Ljava/lang/String;
3: aload 0
iconst_1
putfield io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder.poolSize:I
4: aload 0
aload 3
putfield io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder.threadFactory:Ljava/util/concurrent/ThreadFactory;
5: aload 0
ldc 5
invokestatic io.dropwizard.util.Duration.seconds:(J)Lio/dropwizard/util/Duration;
putfield io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder.shutdownTime:Lio/dropwizard/util/Duration;
6: aload 0
new java.util.concurrent.ThreadPoolExecutor$AbortPolicy
dup
invokespecial java.util.concurrent.ThreadPoolExecutor$AbortPolicy.<init>:()V
putfield io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder.handler:Ljava/util/concurrent/RejectedExecutionHandler;
7: aload 0
iconst_0
putfield io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder.removeOnCancel:Z
8: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/dropwizard/lifecycle/setup/ScheduledExecutorServiceBuilder;
0 9 1 environment Lio/dropwizard/lifecycle/setup/LifecycleEnvironment;
0 9 2 nameFormat Ljava/lang/String;
0 9 3 factory Ljava/util/concurrent/ThreadFactory;
MethodParameters:
Name Flags
environment
nameFormat
factory
public void <init>(io.dropwizard.lifecycle.setup.LifecycleEnvironment, java.lang.String, boolean);
descriptor: (Lio/dropwizard/lifecycle/setup/LifecycleEnvironment;Ljava/lang/String;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 2
iload 3
invokestatic io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder.buildThreadFactory:(Ljava/lang/String;Z)Ljava/util/concurrent/ThreadFactory;
invokespecial io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder.<init>:(Lio/dropwizard/lifecycle/setup/LifecycleEnvironment;Ljava/lang/String;Ljava/util/concurrent/ThreadFactory;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/lifecycle/setup/ScheduledExecutorServiceBuilder;
0 2 1 environment Lio/dropwizard/lifecycle/setup/LifecycleEnvironment;
0 2 2 nameFormat Ljava/lang/String;
0 2 3 useDaemonThreads Z
MethodParameters:
Name Flags
environment
nameFormat
useDaemonThreads
private static java.util.concurrent.ThreadFactory buildThreadFactory(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)Ljava/util/concurrent/ThreadFactory;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: invokestatic java.util.concurrent.Executors.defaultThreadFactory:()Ljava/util/concurrent/ThreadFactory;
astore 2
start local 2 1: aload 2
aload 0
iload 1
invokedynamic newThread(Ljava/util/concurrent/ThreadFactory;Ljava/lang/String;Z)Ljava/util/concurrent/ThreadFactory;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Runnable;)Ljava/lang/Thread;
io/dropwizard/lifecycle/setup/ScheduledExecutorServiceBuilder.lambda$0(Ljava/util/concurrent/ThreadFactory;Ljava/lang/String;ZLjava/lang/Runnable;)Ljava/lang/Thread; (6)
(Ljava/lang/Runnable;)Ljava/lang/Thread;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 nameFormat Ljava/lang/String;
0 2 1 daemon Z
1 2 2 defaultThreadFactory Ljava/util/concurrent/ThreadFactory;
MethodParameters:
Name Flags
nameFormat
daemon
public io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder threads(int);
descriptor: (I)Lio/dropwizard/lifecycle/setup/ScheduledExecutorServiceBuilder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder.poolSize:I
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/lifecycle/setup/ScheduledExecutorServiceBuilder;
0 2 1 threads I
MethodParameters:
Name Flags
threads
public io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder shutdownTime(io.dropwizard.util.Duration);
descriptor: (Lio/dropwizard/util/Duration;)Lio/dropwizard/lifecycle/setup/ScheduledExecutorServiceBuilder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder.shutdownTime:Lio/dropwizard/util/Duration;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/lifecycle/setup/ScheduledExecutorServiceBuilder;
0 2 1 time Lio/dropwizard/util/Duration;
MethodParameters:
Name Flags
time
public io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder rejectedExecutionHandler(java.util.concurrent.RejectedExecutionHandler);
descriptor: (Ljava/util/concurrent/RejectedExecutionHandler;)Lio/dropwizard/lifecycle/setup/ScheduledExecutorServiceBuilder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder.handler:Ljava/util/concurrent/RejectedExecutionHandler;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/lifecycle/setup/ScheduledExecutorServiceBuilder;
0 2 1 handler Ljava/util/concurrent/RejectedExecutionHandler;
MethodParameters:
Name Flags
handler
public io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder threadFactory(java.util.concurrent.ThreadFactory);
descriptor: (Ljava/util/concurrent/ThreadFactory;)Lio/dropwizard/lifecycle/setup/ScheduledExecutorServiceBuilder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder.threadFactory:Ljava/util/concurrent/ThreadFactory;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/lifecycle/setup/ScheduledExecutorServiceBuilder;
0 2 1 threadFactory Ljava/util/concurrent/ThreadFactory;
MethodParameters:
Name Flags
threadFactory
public io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder removeOnCancelPolicy(boolean);
descriptor: (Z)Lio/dropwizard/lifecycle/setup/ScheduledExecutorServiceBuilder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder.removeOnCancel:Z
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/lifecycle/setup/ScheduledExecutorServiceBuilder;
0 2 1 removeOnCancel Z
MethodParameters:
Name Flags
removeOnCancel
public java.util.concurrent.ScheduledExecutorService build();
descriptor: ()Ljava/util/concurrent/ScheduledExecutorService;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=1
start local 0 0: new com.codahale.metrics.InstrumentedThreadFactory
dup
aload 0
getfield io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder.threadFactory:Ljava/util/concurrent/ThreadFactory;
1: aload 0
getfield io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder.environment:Lio/dropwizard/lifecycle/setup/LifecycleEnvironment;
invokevirtual io.dropwizard.lifecycle.setup.LifecycleEnvironment.getMetricRegistry:()Lcom/codahale/metrics/MetricRegistry;
aload 0
getfield io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder.nameFormat:Ljava/lang/String;
2: invokespecial com.codahale.metrics.InstrumentedThreadFactory.<init>:(Ljava/util/concurrent/ThreadFactory;Lcom/codahale/metrics/MetricRegistry;Ljava/lang/String;)V
astore 1
start local 1 3: new java.util.concurrent.ScheduledThreadPoolExecutor
dup
aload 0
getfield io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder.poolSize:I
aload 1
aload 0
getfield io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder.handler:Ljava/util/concurrent/RejectedExecutionHandler;
invokespecial java.util.concurrent.ScheduledThreadPoolExecutor.<init>:(ILjava/util/concurrent/ThreadFactory;Ljava/util/concurrent/RejectedExecutionHandler;)V
astore 2
start local 2 4: aload 2
aload 0
getfield io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder.removeOnCancel:Z
invokevirtual java.util.concurrent.ScheduledThreadPoolExecutor.setRemoveOnCancelPolicy:(Z)V
5: aload 0
getfield io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder.environment:Lio/dropwizard/lifecycle/setup/LifecycleEnvironment;
new io.dropwizard.lifecycle.ExecutorServiceManager
dup
aload 2
aload 0
getfield io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder.shutdownTime:Lio/dropwizard/util/Duration;
aload 0
getfield io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder.nameFormat:Ljava/lang/String;
invokespecial io.dropwizard.lifecycle.ExecutorServiceManager.<init>:(Ljava/util/concurrent/ExecutorService;Lio/dropwizard/util/Duration;Ljava/lang/String;)V
invokevirtual io.dropwizard.lifecycle.setup.LifecycleEnvironment.manage:(Lio/dropwizard/lifecycle/Managed;)V
6: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/dropwizard/lifecycle/setup/ScheduledExecutorServiceBuilder;
3 7 1 instrumentedThreadFactory Lcom/codahale/metrics/InstrumentedThreadFactory;
4 7 2 executor Ljava/util/concurrent/ScheduledThreadPoolExecutor;
private static java.lang.Thread lambda$0(java.util.concurrent.ThreadFactory, java.lang.String, boolean, java.lang.Runnable);
descriptor: (Ljava/util/concurrent/ThreadFactory;Ljava/lang/String;ZLjava/lang/Runnable;)Ljava/lang/Thread;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=8, locals=5, args_size=4
start local 3 0: aload 0
aload 3
invokeinterface java.util.concurrent.ThreadFactory.newThread:(Ljava/lang/Runnable;)Ljava/lang/Thread;
astore 4
start local 4 1: aload 1
ifnull 3
2: aload 4
getstatic java.util.Locale.ROOT:Ljava/util/Locale;
aload 1
iconst_1
anewarray java.lang.Object
dup
iconst_0
getstatic io.dropwizard.lifecycle.setup.ScheduledExecutorServiceBuilder.COUNT:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.incrementAndGet:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokestatic java.lang.String.format:(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.Thread.setName:(Ljava/lang/String;)V
3: StackMap locals: java.lang.Thread
StackMap stack:
aload 4
iload 2
invokevirtual java.lang.Thread.setDaemon:(Z)V
4: aload 4
areturn
end local 4 end local 3 LocalVariableTable:
Start End Slot Name Signature
0 5 3 r Ljava/lang/Runnable;
1 5 4 thread Ljava/lang/Thread;
}
SourceFile: "ScheduledExecutorServiceBuilder.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public AbortPolicy = java.util.concurrent.ThreadPoolExecutor$AbortPolicy of java.util.concurrent.ThreadPoolExecutor