public class com.netflix.hystrix.HystrixThreadPool$Factory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.netflix.hystrix.HystrixThreadPool$Factory
super_class: java.lang.Object
{
static final java.util.concurrent.ConcurrentHashMap<java.lang.String, com.netflix.hystrix.HystrixThreadPool> threadPools;
descriptor: Ljava/util/concurrent/ConcurrentHashMap;
flags: (0x0018) ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentHashMap<Ljava/lang/String;Lcom/netflix/hystrix/HystrixThreadPool;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putstatic com.netflix.hystrix.HystrixThreadPool$Factory.threadPools:Ljava/util/concurrent/ConcurrentHashMap;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/netflix/hystrix/HystrixThreadPool$Factory;
static com.netflix.hystrix.HystrixThreadPool getInstance(com.netflix.hystrix.HystrixThreadPoolKey, com.netflix.hystrix.HystrixThreadPoolProperties$Setter);
descriptor: (Lcom/netflix/hystrix/HystrixThreadPoolKey;Lcom/netflix/hystrix/HystrixThreadPoolProperties$Setter;)Lcom/netflix/hystrix/HystrixThreadPool;
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface com.netflix.hystrix.HystrixThreadPoolKey.name:()Ljava/lang/String;
astore 2
start local 2 1: getstatic com.netflix.hystrix.HystrixThreadPool$Factory.threadPools:Ljava/util/concurrent/ConcurrentHashMap;
aload 2
invokevirtual java.util.concurrent.ConcurrentHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.netflix.hystrix.HystrixThreadPool
astore 3
start local 3 2: aload 3
ifnull 4
3: aload 3
areturn
4: StackMap locals: java.lang.String com.netflix.hystrix.HystrixThreadPool
StackMap stack:
ldc Lcom/netflix/hystrix/HystrixThreadPool;
dup
astore 4
monitorenter
5: getstatic com.netflix.hystrix.HystrixThreadPool$Factory.threadPools:Ljava/util/concurrent/ConcurrentHashMap;
aload 2
invokevirtual java.util.concurrent.ConcurrentHashMap.containsKey:(Ljava/lang/Object;)Z
ifne 7
6: getstatic com.netflix.hystrix.HystrixThreadPool$Factory.threadPools:Ljava/util/concurrent/ConcurrentHashMap;
aload 2
new com.netflix.hystrix.HystrixThreadPool$HystrixThreadPoolDefault
dup
aload 0
aload 1
invokespecial com.netflix.hystrix.HystrixThreadPool$HystrixThreadPoolDefault.<init>:(Lcom/netflix/hystrix/HystrixThreadPoolKey;Lcom/netflix/hystrix/HystrixThreadPoolProperties$Setter;)V
invokevirtual java.util.concurrent.ConcurrentHashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: StackMap locals: java.lang.Class
StackMap stack:
aload 4
monitorexit
8: goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
9: aload 4
monitorexit
10: athrow
11: StackMap locals:
StackMap stack:
getstatic com.netflix.hystrix.HystrixThreadPool$Factory.threadPools:Ljava/util/concurrent/ConcurrentHashMap;
aload 2
invokevirtual java.util.concurrent.ConcurrentHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.netflix.hystrix.HystrixThreadPool
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 threadPoolKey Lcom/netflix/hystrix/HystrixThreadPoolKey;
0 12 1 propertiesBuilder Lcom/netflix/hystrix/HystrixThreadPoolProperties$Setter;
1 12 2 key Ljava/lang/String;
2 12 3 previouslyCached Lcom/netflix/hystrix/HystrixThreadPool;
Exception table:
from to target type
5 8 9 any
9 10 9 any
MethodParameters:
Name Flags
threadPoolKey
propertiesBuilder
static synchronized void shutdown();
descriptor: ()V
flags: (0x0028) ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=2, args_size=0
0: getstatic com.netflix.hystrix.HystrixThreadPool$Factory.threadPools:Ljava/util/concurrent/ConcurrentHashMap;
invokevirtual java.util.concurrent.ConcurrentHashMap.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 1
goto 3
StackMap locals: top java.util.Iterator
StackMap stack:
1: aload 1
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.netflix.hystrix.HystrixThreadPool
astore 0
start local 0 2: aload 0
invokeinterface com.netflix.hystrix.HystrixThreadPool.getExecutor:()Ljava/util/concurrent/ExecutorService;
invokeinterface java.util.concurrent.ExecutorService.shutdown:()V
end local 0 3: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: getstatic com.netflix.hystrix.HystrixThreadPool$Factory.threadPools:Ljava/util/concurrent/ConcurrentHashMap;
invokevirtual java.util.concurrent.ConcurrentHashMap.clear:()V
5: return
LocalVariableTable:
Start End Slot Name Signature
2 3 0 pool Lcom/netflix/hystrix/HystrixThreadPool;
static synchronized void shutdown(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)V
flags: (0x0028) ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=6, args_size=2
start local 0 start local 2 0: getstatic com.netflix.hystrix.HystrixThreadPool$Factory.threadPools:Ljava/util/concurrent/ConcurrentHashMap;
invokevirtual java.util.concurrent.ConcurrentHashMap.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 3
StackMap locals: long java.util.concurrent.TimeUnit top java.util.Iterator
StackMap stack:
1: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.netflix.hystrix.HystrixThreadPool
astore 3
start local 3 2: aload 3
invokeinterface com.netflix.hystrix.HystrixThreadPool.getExecutor:()Ljava/util/concurrent/ExecutorService;
invokeinterface java.util.concurrent.ExecutorService.shutdown:()V
end local 3 3: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: getstatic com.netflix.hystrix.HystrixThreadPool$Factory.threadPools:Ljava/util/concurrent/ConcurrentHashMap;
invokevirtual java.util.concurrent.ConcurrentHashMap.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 10
StackMap locals:
StackMap stack:
5: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.netflix.hystrix.HystrixThreadPool
astore 3
start local 3 6: StackMap locals: long java.util.concurrent.TimeUnit com.netflix.hystrix.HystrixThreadPool java.util.Iterator
StackMap stack:
aload 3
invokeinterface com.netflix.hystrix.HystrixThreadPool.getExecutor:()Ljava/util/concurrent/ExecutorService;
lload 0
aload 2
invokeinterface java.util.concurrent.ExecutorService.awaitTermination:(JLjava/util/concurrent/TimeUnit;)Z
ifeq 6
7: goto 10
StackMap locals:
StackMap stack: java.lang.InterruptedException
8: astore 5
start local 5 9: new java.lang.RuntimeException
dup
ldc "Interrupted while waiting for thread-pools to terminate. Pools may not be correctly shutdown or cleared."
aload 5
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 end local 3 10: StackMap locals: long java.util.concurrent.TimeUnit top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
11: getstatic com.netflix.hystrix.HystrixThreadPool$Factory.threadPools:Ljava/util/concurrent/ConcurrentHashMap;
invokevirtual java.util.concurrent.ConcurrentHashMap.clear:()V
12: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 timeout J
0 13 2 unit Ljava/util/concurrent/TimeUnit;
2 3 3 pool Lcom/netflix/hystrix/HystrixThreadPool;
6 10 3 pool Lcom/netflix/hystrix/HystrixThreadPool;
9 10 5 e Ljava/lang/InterruptedException;
Exception table:
from to target type
6 7 8 Class java.lang.InterruptedException
MethodParameters:
Name Flags
timeout
unit
}
SourceFile: "HystrixThreadPool.java"
NestHost: com.netflix.hystrix.HystrixThreadPool
InnerClasses:
public Factory = com.netflix.hystrix.HystrixThreadPool$Factory of com.netflix.hystrix.HystrixThreadPool
public HystrixThreadPoolDefault = com.netflix.hystrix.HystrixThreadPool$HystrixThreadPoolDefault of com.netflix.hystrix.HystrixThreadPool
public Setter = com.netflix.hystrix.HystrixThreadPoolProperties$Setter of com.netflix.hystrix.HystrixThreadPoolProperties