public class com.netflix.hystrix.HystrixRequestCache
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.netflix.hystrix.HystrixRequestCache
super_class: java.lang.Object
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.concurrent.ConcurrentHashMap<com.netflix.hystrix.HystrixRequestCache$RequestCacheKey, com.netflix.hystrix.HystrixRequestCache> caches;
descriptor: Ljava/util/concurrent/ConcurrentHashMap;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentHashMap<Lcom/netflix/hystrix/HystrixRequestCache$RequestCacheKey;Lcom/netflix/hystrix/HystrixRequestCache;>;
private final com.netflix.hystrix.HystrixRequestCache$RequestCacheKey rcKey;
descriptor: Lcom/netflix/hystrix/HystrixRequestCache$RequestCacheKey;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategy concurrencyStrategy;
descriptor: Lcom/netflix/hystrix/strategy/concurrency/HystrixConcurrencyStrategy;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final com.netflix.hystrix.strategy.concurrency.HystrixRequestVariableHolder<java.util.concurrent.ConcurrentHashMap<com.netflix.hystrix.HystrixRequestCache$ValueCacheKey, com.netflix.hystrix.HystrixCachedObservable<?>>> requestVariableForCache;
descriptor: Lcom/netflix/hystrix/strategy/concurrency/HystrixRequestVariableHolder;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Lcom/netflix/hystrix/strategy/concurrency/HystrixRequestVariableHolder<Ljava/util/concurrent/ConcurrentHashMap<Lcom/netflix/hystrix/HystrixRequestCache$ValueCacheKey;Lcom/netflix/hystrix/HystrixCachedObservable<*>;>;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: ldc Lcom/netflix/hystrix/HystrixRequestCache;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic com.netflix.hystrix.HystrixRequestCache.logger:Lorg/slf4j/Logger;
1: new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putstatic com.netflix.hystrix.HystrixRequestCache.caches:Ljava/util/concurrent/ConcurrentHashMap;
2: new com.netflix.hystrix.strategy.concurrency.HystrixRequestVariableHolder
dup
new com.netflix.hystrix.HystrixRequestCache$1
dup
invokespecial com.netflix.hystrix.HystrixRequestCache$1.<init>:()V
invokespecial com.netflix.hystrix.strategy.concurrency.HystrixRequestVariableHolder.<init>:(Lcom/netflix/hystrix/strategy/concurrency/HystrixRequestVariableLifecycle;)V
putstatic com.netflix.hystrix.HystrixRequestCache.requestVariableForCache:Lcom/netflix/hystrix/strategy/concurrency/HystrixRequestVariableHolder;
3: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(com.netflix.hystrix.HystrixRequestCache$RequestCacheKey, com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategy);
descriptor: (Lcom/netflix/hystrix/HystrixRequestCache$RequestCacheKey;Lcom/netflix/hystrix/strategy/concurrency/HystrixConcurrencyStrategy;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield com.netflix.hystrix.HystrixRequestCache.rcKey:Lcom/netflix/hystrix/HystrixRequestCache$RequestCacheKey;
2: aload 0
aload 2
putfield com.netflix.hystrix.HystrixRequestCache.concurrencyStrategy:Lcom/netflix/hystrix/strategy/concurrency/HystrixConcurrencyStrategy;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/netflix/hystrix/HystrixRequestCache;
0 4 1 rcKey Lcom/netflix/hystrix/HystrixRequestCache$RequestCacheKey;
0 4 2 concurrencyStrategy Lcom/netflix/hystrix/strategy/concurrency/HystrixConcurrencyStrategy;
MethodParameters:
Name Flags
rcKey
concurrencyStrategy
public static com.netflix.hystrix.HystrixRequestCache getInstance(com.netflix.hystrix.HystrixCommandKey, com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategy);
descriptor: (Lcom/netflix/hystrix/HystrixCommandKey;Lcom/netflix/hystrix/strategy/concurrency/HystrixConcurrencyStrategy;)Lcom/netflix/hystrix/HystrixRequestCache;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new com.netflix.hystrix.HystrixRequestCache$RequestCacheKey
dup
aload 0
aload 1
invokespecial com.netflix.hystrix.HystrixRequestCache$RequestCacheKey.<init>:(Lcom/netflix/hystrix/HystrixCommandKey;Lcom/netflix/hystrix/strategy/concurrency/HystrixConcurrencyStrategy;)V
aload 1
invokestatic com.netflix.hystrix.HystrixRequestCache.getInstance:(Lcom/netflix/hystrix/HystrixRequestCache$RequestCacheKey;Lcom/netflix/hystrix/strategy/concurrency/HystrixConcurrencyStrategy;)Lcom/netflix/hystrix/HystrixRequestCache;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 key Lcom/netflix/hystrix/HystrixCommandKey;
0 1 1 concurrencyStrategy Lcom/netflix/hystrix/strategy/concurrency/HystrixConcurrencyStrategy;
MethodParameters:
Name Flags
key
concurrencyStrategy
public static com.netflix.hystrix.HystrixRequestCache getInstance(com.netflix.hystrix.HystrixCollapserKey, com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategy);
descriptor: (Lcom/netflix/hystrix/HystrixCollapserKey;Lcom/netflix/hystrix/strategy/concurrency/HystrixConcurrencyStrategy;)Lcom/netflix/hystrix/HystrixRequestCache;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new com.netflix.hystrix.HystrixRequestCache$RequestCacheKey
dup
aload 0
aload 1
invokespecial com.netflix.hystrix.HystrixRequestCache$RequestCacheKey.<init>:(Lcom/netflix/hystrix/HystrixCollapserKey;Lcom/netflix/hystrix/strategy/concurrency/HystrixConcurrencyStrategy;)V
aload 1
invokestatic com.netflix.hystrix.HystrixRequestCache.getInstance:(Lcom/netflix/hystrix/HystrixRequestCache$RequestCacheKey;Lcom/netflix/hystrix/strategy/concurrency/HystrixConcurrencyStrategy;)Lcom/netflix/hystrix/HystrixRequestCache;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 key Lcom/netflix/hystrix/HystrixCollapserKey;
0 1 1 concurrencyStrategy Lcom/netflix/hystrix/strategy/concurrency/HystrixConcurrencyStrategy;
MethodParameters:
Name Flags
key
concurrencyStrategy
private static com.netflix.hystrix.HystrixRequestCache getInstance(com.netflix.hystrix.HystrixRequestCache$RequestCacheKey, com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategy);
descriptor: (Lcom/netflix/hystrix/HystrixRequestCache$RequestCacheKey;Lcom/netflix/hystrix/strategy/concurrency/HystrixConcurrencyStrategy;)Lcom/netflix/hystrix/HystrixRequestCache;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: getstatic com.netflix.hystrix.HystrixRequestCache.caches:Ljava/util/concurrent/ConcurrentHashMap;
aload 0
invokevirtual java.util.concurrent.ConcurrentHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.netflix.hystrix.HystrixRequestCache
astore 2
start local 2 1: aload 2
ifnonnull 8
2: new com.netflix.hystrix.HystrixRequestCache
dup
aload 0
aload 1
invokespecial com.netflix.hystrix.HystrixRequestCache.<init>:(Lcom/netflix/hystrix/HystrixRequestCache$RequestCacheKey;Lcom/netflix/hystrix/strategy/concurrency/HystrixConcurrencyStrategy;)V
astore 3
start local 3 3: getstatic com.netflix.hystrix.HystrixRequestCache.caches:Ljava/util/concurrent/ConcurrentHashMap;
aload 0
aload 3
invokevirtual java.util.concurrent.ConcurrentHashMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.netflix.hystrix.HystrixRequestCache
astore 4
start local 4 4: aload 4
ifnonnull 7
5: aload 3
astore 2
6: goto 8
7: StackMap locals: com.netflix.hystrix.HystrixRequestCache com.netflix.hystrix.HystrixRequestCache com.netflix.hystrix.HystrixRequestCache
StackMap stack:
aload 4
astore 2
end local 4 end local 3 8: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 rcKey Lcom/netflix/hystrix/HystrixRequestCache$RequestCacheKey;
0 9 1 concurrencyStrategy Lcom/netflix/hystrix/strategy/concurrency/HystrixConcurrencyStrategy;
1 9 2 c Lcom/netflix/hystrix/HystrixRequestCache;
3 8 3 newRequestCache Lcom/netflix/hystrix/HystrixRequestCache;
4 8 4 existing Lcom/netflix/hystrix/HystrixRequestCache;
MethodParameters:
Name Flags
rcKey
concurrencyStrategy
<T> com.netflix.hystrix.HystrixCachedObservable<T> get(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/netflix/hystrix/HystrixCachedObservable;
flags: (0x0000)
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual com.netflix.hystrix.HystrixRequestCache.getRequestCacheKey:(Ljava/lang/String;)Lcom/netflix/hystrix/HystrixRequestCache$ValueCacheKey;
astore 2
start local 2 1: aload 2
ifnull 6
2: getstatic com.netflix.hystrix.HystrixRequestCache.requestVariableForCache:Lcom/netflix/hystrix/strategy/concurrency/HystrixRequestVariableHolder;
aload 0
getfield com.netflix.hystrix.HystrixRequestCache.concurrencyStrategy:Lcom/netflix/hystrix/strategy/concurrency/HystrixConcurrencyStrategy;
invokevirtual com.netflix.hystrix.strategy.concurrency.HystrixRequestVariableHolder.get:(Lcom/netflix/hystrix/strategy/concurrency/HystrixConcurrencyStrategy;)Ljava/lang/Object;
checkcast java.util.concurrent.ConcurrentHashMap
astore 3
start local 3 3: aload 3
ifnonnull 5
4: new java.lang.IllegalStateException
dup
ldc "Request caching is not available. Maybe you need to initialize the HystrixRequestContext?"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: com.netflix.hystrix.HystrixRequestCache$ValueCacheKey java.util.concurrent.ConcurrentHashMap
StackMap stack:
aload 3
aload 2
invokevirtual java.util.concurrent.ConcurrentHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.netflix.hystrix.HystrixCachedObservable
areturn
end local 3 6: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/netflix/hystrix/HystrixRequestCache;
0 7 1 cacheKey Ljava/lang/String;
1 7 2 key Lcom/netflix/hystrix/HystrixRequestCache$ValueCacheKey;
3 6 3 cacheInstance Ljava/util/concurrent/ConcurrentHashMap<Lcom/netflix/hystrix/HystrixRequestCache$ValueCacheKey;Lcom/netflix/hystrix/HystrixCachedObservable<*>;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/String;)Lcom/netflix/hystrix/HystrixCachedObservable<TT;>;
MethodParameters:
Name Flags
cacheKey
<T> com.netflix.hystrix.HystrixCachedObservable<T> putIfAbsent(java.lang.String, com.netflix.hystrix.HystrixCachedObservable<T>);
descriptor: (Ljava/lang/String;Lcom/netflix/hystrix/HystrixCachedObservable;)Lcom/netflix/hystrix/HystrixCachedObservable;
flags: (0x0000)
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual com.netflix.hystrix.HystrixRequestCache.getRequestCacheKey:(Ljava/lang/String;)Lcom/netflix/hystrix/HystrixRequestCache$ValueCacheKey;
astore 3
start local 3 1: aload 3
ifnull 8
2: getstatic com.netflix.hystrix.HystrixRequestCache.requestVariableForCache:Lcom/netflix/hystrix/strategy/concurrency/HystrixRequestVariableHolder;
aload 0
getfield com.netflix.hystrix.HystrixRequestCache.concurrencyStrategy:Lcom/netflix/hystrix/strategy/concurrency/HystrixConcurrencyStrategy;
invokevirtual com.netflix.hystrix.strategy.concurrency.HystrixRequestVariableHolder.get:(Lcom/netflix/hystrix/strategy/concurrency/HystrixConcurrencyStrategy;)Ljava/lang/Object;
checkcast java.util.concurrent.ConcurrentHashMap
astore 4
start local 4 3: aload 4
ifnonnull 5
4: new java.lang.IllegalStateException
dup
ldc "Request caching is not available. Maybe you need to initialize the HystrixRequestContext?"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: com.netflix.hystrix.HystrixRequestCache$ValueCacheKey java.util.concurrent.ConcurrentHashMap
StackMap stack:
aload 4
aload 3
aload 2
invokevirtual java.util.concurrent.ConcurrentHashMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.netflix.hystrix.HystrixCachedObservable
astore 5
start local 5 6: aload 5
ifnull 8
7: aload 5
areturn
end local 5 end local 4 8: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/netflix/hystrix/HystrixRequestCache;
0 9 1 cacheKey Ljava/lang/String;
0 9 2 f Lcom/netflix/hystrix/HystrixCachedObservable<TT;>;
1 9 3 key Lcom/netflix/hystrix/HystrixRequestCache$ValueCacheKey;
3 8 4 cacheInstance Ljava/util/concurrent/ConcurrentHashMap<Lcom/netflix/hystrix/HystrixRequestCache$ValueCacheKey;Lcom/netflix/hystrix/HystrixCachedObservable<*>;>;
6 8 5 alreadySet Lcom/netflix/hystrix/HystrixCachedObservable<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/String;Lcom/netflix/hystrix/HystrixCachedObservable<TT;>;)Lcom/netflix/hystrix/HystrixCachedObservable<TT;>;
MethodParameters:
Name Flags
cacheKey
f
public void clear(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual com.netflix.hystrix.HystrixRequestCache.getRequestCacheKey:(Ljava/lang/String;)Lcom/netflix/hystrix/HystrixRequestCache$ValueCacheKey;
astore 2
start local 2 1: aload 2
ifnull 3
2: getstatic com.netflix.hystrix.HystrixRequestCache.requestVariableForCache:Lcom/netflix/hystrix/strategy/concurrency/HystrixRequestVariableHolder;
aload 0
getfield com.netflix.hystrix.HystrixRequestCache.concurrencyStrategy:Lcom/netflix/hystrix/strategy/concurrency/HystrixConcurrencyStrategy;
invokevirtual com.netflix.hystrix.strategy.concurrency.HystrixRequestVariableHolder.get:(Lcom/netflix/hystrix/strategy/concurrency/HystrixConcurrencyStrategy;)Ljava/lang/Object;
checkcast java.util.concurrent.ConcurrentHashMap
aload 2
invokevirtual java.util.concurrent.ConcurrentHashMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
3: StackMap locals: com.netflix.hystrix.HystrixRequestCache$ValueCacheKey
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/netflix/hystrix/HystrixRequestCache;
0 4 1 cacheKey Ljava/lang/String;
1 4 2 key Lcom/netflix/hystrix/HystrixRequestCache$ValueCacheKey;
MethodParameters:
Name Flags
cacheKey
private com.netflix.hystrix.HystrixRequestCache$ValueCacheKey getRequestCacheKey(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/netflix/hystrix/HystrixRequestCache$ValueCacheKey;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 2
1: new com.netflix.hystrix.HystrixRequestCache$ValueCacheKey
dup
aload 0
getfield com.netflix.hystrix.HystrixRequestCache.rcKey:Lcom/netflix/hystrix/HystrixRequestCache$RequestCacheKey;
aload 1
invokespecial com.netflix.hystrix.HystrixRequestCache$ValueCacheKey.<init>:(Lcom/netflix/hystrix/HystrixRequestCache$RequestCacheKey;Ljava/lang/String;)V
areturn
2: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/netflix/hystrix/HystrixRequestCache;
0 3 1 cacheKey Ljava/lang/String;
MethodParameters:
Name Flags
cacheKey
}
SourceFile: "HystrixRequestCache.java"
NestMembers:
com.netflix.hystrix.HystrixRequestCache$1 com.netflix.hystrix.HystrixRequestCache$RequestCacheKey com.netflix.hystrix.HystrixRequestCache$ValueCacheKey
InnerClasses:
com.netflix.hystrix.HystrixRequestCache$1
private RequestCacheKey = com.netflix.hystrix.HystrixRequestCache$RequestCacheKey of com.netflix.hystrix.HystrixRequestCache
private ValueCacheKey = com.netflix.hystrix.HystrixRequestCache$ValueCacheKey of com.netflix.hystrix.HystrixRequestCache