public class io.dropwizard.lifecycle.ExecutorServiceManager implements io.dropwizard.lifecycle.Managed
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.dropwizard.lifecycle.ExecutorServiceManager
super_class: java.lang.Object
{
private static final org.slf4j.Logger LOG;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.util.concurrent.ExecutorService executor;
descriptor: Ljava/util/concurrent/ExecutorService;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.dropwizard.util.Duration shutdownPeriod;
descriptor: Lio/dropwizard/util/Duration;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String poolName;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lio/dropwizard/lifecycle/ExecutorServiceManager;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic io.dropwizard.lifecycle.ExecutorServiceManager.LOG:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.util.concurrent.ExecutorService, io.dropwizard.util.Duration, java.lang.String);
descriptor: (Ljava/util/concurrent/ExecutorService;Lio/dropwizard/util/Duration;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, 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.ExecutorServiceManager.executor:Ljava/util/concurrent/ExecutorService;
2: aload 0
aload 2
putfield io.dropwizard.lifecycle.ExecutorServiceManager.shutdownPeriod:Lio/dropwizard/util/Duration;
3: aload 0
aload 3
putfield io.dropwizard.lifecycle.ExecutorServiceManager.poolName:Ljava/lang/String;
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/dropwizard/lifecycle/ExecutorServiceManager;
0 5 1 executor Ljava/util/concurrent/ExecutorService;
0 5 2 shutdownPeriod Lio/dropwizard/util/Duration;
0 5 3 poolName Ljava/lang/String;
MethodParameters:
Name Flags
executor
shutdownPeriod
poolName
public void start();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/lifecycle/ExecutorServiceManager;
Exceptions:
throws java.lang.Exception
public void stop();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.lifecycle.ExecutorServiceManager.executor:Ljava/util/concurrent/ExecutorService;
invokeinterface java.util.concurrent.ExecutorService.shutdown:()V
1: aload 0
getfield io.dropwizard.lifecycle.ExecutorServiceManager.executor:Ljava/util/concurrent/ExecutorService;
aload 0
getfield io.dropwizard.lifecycle.ExecutorServiceManager.shutdownPeriod:Lio/dropwizard/util/Duration;
invokevirtual io.dropwizard.util.Duration.getQuantity:()J
aload 0
getfield io.dropwizard.lifecycle.ExecutorServiceManager.shutdownPeriod:Lio/dropwizard/util/Duration;
invokevirtual io.dropwizard.util.Duration.getUnit:()Ljava/util/concurrent/TimeUnit;
invokeinterface java.util.concurrent.ExecutorService.awaitTermination:(JLjava/util/concurrent/TimeUnit;)Z
istore 1
start local 1 2: iload 1
ifne 4
getstatic io.dropwizard.lifecycle.ExecutorServiceManager.LOG:Lorg/slf4j/Logger;
invokeinterface org.slf4j.Logger.isDebugEnabled:()Z
ifeq 4
3: getstatic io.dropwizard.lifecycle.ExecutorServiceManager.LOG:Lorg/slf4j/Logger;
new java.lang.StringBuilder
dup
ldc "Timeout has elapsed before termination completed for executor "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield io.dropwizard.lifecycle.ExecutorServiceManager.executor:Ljava/util/concurrent/ExecutorService;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;)V
4: StackMap locals: int
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/dropwizard/lifecycle/ExecutorServiceManager;
2 5 1 success Z
Exceptions:
throws java.lang.InterruptedException, java.lang.Exception
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
invokespecial java.lang.Object.toString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 40
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 0
getfield io.dropwizard.lifecycle.ExecutorServiceManager.poolName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 41
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/lifecycle/ExecutorServiceManager;
public java.util.concurrent.ExecutorService getExecutor();
descriptor: ()Ljava/util/concurrent/ExecutorService;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.lifecycle.ExecutorServiceManager.executor:Ljava/util/concurrent/ExecutorService;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/lifecycle/ExecutorServiceManager;
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
com.google.common.annotations.VisibleForTesting()
public io.dropwizard.util.Duration getShutdownPeriod();
descriptor: ()Lio/dropwizard/util/Duration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.lifecycle.ExecutorServiceManager.shutdownPeriod:Lio/dropwizard/util/Duration;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/lifecycle/ExecutorServiceManager;
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
com.google.common.annotations.VisibleForTesting()
public java.lang.String getPoolName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.lifecycle.ExecutorServiceManager.poolName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/lifecycle/ExecutorServiceManager;
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
com.google.common.annotations.VisibleForTesting()
}
SourceFile: "ExecutorServiceManager.java"