class com.netflix.hystrix.AbstractCommand$7 implements rx.functions.Func0<rx.Observable<R>>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.netflix.hystrix.AbstractCommand$7
super_class: java.lang.Object
{
final com.netflix.hystrix.AbstractCommand this$0;
descriptor: Lcom/netflix/hystrix/AbstractCommand;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
private final com.netflix.hystrix.AbstractCommand val$_cmd;
descriptor: Lcom/netflix/hystrix/AbstractCommand;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final rx.functions.Func0 val$applyHystrixSemantics;
descriptor: Lrx/functions/Func0;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final rx.functions.Func1 val$wrapWithAllOnNextHooks;
descriptor: Lrx/functions/Func1;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final rx.functions.Action0 val$terminateCommandCleanup;
descriptor: Lrx/functions/Action0;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final rx.functions.Action0 val$unsubscribeCommandCleanup;
descriptor: Lrx/functions/Action0;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final rx.functions.Action0 val$fireOnCompletedHook;
descriptor: Lrx/functions/Action0;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
void <init>(com.netflix.hystrix.AbstractCommand, com.netflix.hystrix.AbstractCommand, rx.functions.Func0, rx.functions.Func1, rx.functions.Action0, rx.functions.Action0, rx.functions.Action0);
descriptor: (Lcom/netflix/hystrix/AbstractCommand;Lcom/netflix/hystrix/AbstractCommand;Lrx/functions/Func0;Lrx/functions/Func1;Lrx/functions/Action0;Lrx/functions/Action0;Lrx/functions/Action0;)V
flags: (0x0000)
Code:
stack=2, locals=8, args_size=8
start local 0 0: aload 0
aload 1
putfield com.netflix.hystrix.AbstractCommand$7.this$0:Lcom/netflix/hystrix/AbstractCommand;
aload 0
aload 2
putfield com.netflix.hystrix.AbstractCommand$7.val$_cmd:Lcom/netflix/hystrix/AbstractCommand;
aload 0
aload 3
putfield com.netflix.hystrix.AbstractCommand$7.val$applyHystrixSemantics:Lrx/functions/Func0;
aload 0
aload 4
putfield com.netflix.hystrix.AbstractCommand$7.val$wrapWithAllOnNextHooks:Lrx/functions/Func1;
aload 0
aload 5
putfield com.netflix.hystrix.AbstractCommand$7.val$terminateCommandCleanup:Lrx/functions/Action0;
aload 0
aload 6
putfield com.netflix.hystrix.AbstractCommand$7.val$unsubscribeCommandCleanup:Lrx/functions/Action0;
aload 0
aload 7
putfield com.netflix.hystrix.AbstractCommand$7.val$fireOnCompletedHook:Lrx/functions/Action0;
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/AbstractCommand$7;
MethodParameters:
Name Flags
this$0 final
val$_cmd final
val$applyHystrixSemantics final
val$wrapWithAllOnNextHooks final
val$terminateCommandCleanup final
val$unsubscribeCommandCleanup final
val$fireOnCompletedHook final
public rx.Observable<R> call();
descriptor: ()Lrx/Observable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=7, args_size=1
start local 0 0: aload 0
getfield com.netflix.hystrix.AbstractCommand$7.this$0:Lcom/netflix/hystrix/AbstractCommand;
getfield com.netflix.hystrix.AbstractCommand.commandState:Ljava/util/concurrent/atomic/AtomicReference;
getstatic com.netflix.hystrix.AbstractCommand$CommandState.NOT_STARTED:Lcom/netflix/hystrix/AbstractCommand$CommandState;
getstatic com.netflix.hystrix.AbstractCommand$CommandState.OBSERVABLE_CHAIN_CREATED:Lcom/netflix/hystrix/AbstractCommand$CommandState;
invokevirtual java.util.concurrent.atomic.AtomicReference.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifne 3
1: new java.lang.IllegalStateException
dup
ldc "This instance can only be executed once. Please instantiate a new instance."
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
astore 1
start local 1 2: new com.netflix.hystrix.exception.HystrixRuntimeException
dup
getstatic com.netflix.hystrix.exception.HystrixRuntimeException$FailureType.BAD_REQUEST_EXCEPTION:Lcom/netflix/hystrix/exception/HystrixRuntimeException$FailureType;
aload 0
getfield com.netflix.hystrix.AbstractCommand$7.val$_cmd:Lcom/netflix/hystrix/AbstractCommand;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
new java.lang.StringBuilder
dup
aload 0
getfield com.netflix.hystrix.AbstractCommand$7.this$0:Lcom/netflix/hystrix/AbstractCommand;
invokevirtual com.netflix.hystrix.AbstractCommand.getLogMessagePrefix:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " command executed multiple times - this is not permitted."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
aconst_null
invokespecial com.netflix.hystrix.exception.HystrixRuntimeException.<init>:(Lcom/netflix/hystrix/exception/HystrixRuntimeException$FailureType;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Exception;Ljava/lang/Throwable;)V
athrow
end local 1 3: StackMap locals:
StackMap stack:
aload 0
getfield com.netflix.hystrix.AbstractCommand$7.this$0:Lcom/netflix/hystrix/AbstractCommand;
invokestatic java.lang.System.currentTimeMillis:()J
putfield com.netflix.hystrix.AbstractCommand.commandStartTimestamp:J
4: aload 0
getfield com.netflix.hystrix.AbstractCommand$7.this$0:Lcom/netflix/hystrix/AbstractCommand;
getfield com.netflix.hystrix.AbstractCommand.properties:Lcom/netflix/hystrix/HystrixCommandProperties;
invokevirtual com.netflix.hystrix.HystrixCommandProperties.requestLogEnabled:()Lcom/netflix/hystrix/strategy/properties/HystrixProperty;
invokeinterface com.netflix.hystrix.strategy.properties.HystrixProperty.get:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 7
5: aload 0
getfield com.netflix.hystrix.AbstractCommand$7.this$0:Lcom/netflix/hystrix/AbstractCommand;
getfield com.netflix.hystrix.AbstractCommand.currentRequestLog:Lcom/netflix/hystrix/HystrixRequestLog;
ifnull 7
6: aload 0
getfield com.netflix.hystrix.AbstractCommand$7.this$0:Lcom/netflix/hystrix/AbstractCommand;
getfield com.netflix.hystrix.AbstractCommand.currentRequestLog:Lcom/netflix/hystrix/HystrixRequestLog;
aload 0
getfield com.netflix.hystrix.AbstractCommand$7.val$_cmd:Lcom/netflix/hystrix/AbstractCommand;
invokevirtual com.netflix.hystrix.HystrixRequestLog.addExecutedCommand:(Lcom/netflix/hystrix/HystrixInvokableInfo;)V
7: StackMap locals:
StackMap stack:
aload 0
getfield com.netflix.hystrix.AbstractCommand$7.this$0:Lcom/netflix/hystrix/AbstractCommand;
invokevirtual com.netflix.hystrix.AbstractCommand.isRequestCachingEnabled:()Z
istore 1
start local 1 8: aload 0
getfield com.netflix.hystrix.AbstractCommand$7.this$0:Lcom/netflix/hystrix/AbstractCommand;
invokevirtual com.netflix.hystrix.AbstractCommand.getCacheKey:()Ljava/lang/String;
astore 2
start local 2 9: iload 1
ifeq 14
10: aload 0
getfield com.netflix.hystrix.AbstractCommand$7.this$0:Lcom/netflix/hystrix/AbstractCommand;
getfield com.netflix.hystrix.AbstractCommand.requestCache:Lcom/netflix/hystrix/HystrixRequestCache;
aload 2
invokevirtual com.netflix.hystrix.HystrixRequestCache.get:(Ljava/lang/String;)Lcom/netflix/hystrix/HystrixCachedObservable;
checkcast com.netflix.hystrix.HystrixCommandResponseFromCache
astore 3
start local 3 11: aload 3
ifnull 14
12: aload 0
getfield com.netflix.hystrix.AbstractCommand$7.this$0:Lcom/netflix/hystrix/AbstractCommand;
iconst_1
putfield com.netflix.hystrix.AbstractCommand.isResponseFromCache:Z
13: aload 0
getfield com.netflix.hystrix.AbstractCommand$7.this$0:Lcom/netflix/hystrix/AbstractCommand;
aload 3
aload 0
getfield com.netflix.hystrix.AbstractCommand$7.val$_cmd:Lcom/netflix/hystrix/AbstractCommand;
invokevirtual com.netflix.hystrix.AbstractCommand.handleRequestCacheHitAndEmitValues:(Lcom/netflix/hystrix/HystrixCommandResponseFromCache;Lcom/netflix/hystrix/AbstractCommand;)Lrx/Observable;
areturn
end local 3 14: StackMap locals: int java.lang.String
StackMap stack:
aload 0
getfield com.netflix.hystrix.AbstractCommand$7.val$applyHystrixSemantics:Lrx/functions/Func0;
invokestatic rx.Observable.defer:(Lrx/functions/Func0;)Lrx/Observable;
15: aload 0
getfield com.netflix.hystrix.AbstractCommand$7.val$wrapWithAllOnNextHooks:Lrx/functions/Func1;
invokevirtual rx.Observable.map:(Lrx/functions/Func1;)Lrx/Observable;
16: astore 3
start local 3 17: iload 1
ifeq 26
aload 2
ifnull 26
18: aload 3
aload 0
getfield com.netflix.hystrix.AbstractCommand$7.val$_cmd:Lcom/netflix/hystrix/AbstractCommand;
invokestatic com.netflix.hystrix.HystrixCachedObservable.from:(Lrx/Observable;Lcom/netflix/hystrix/AbstractCommand;)Lcom/netflix/hystrix/HystrixCachedObservable;
astore 5
start local 5 19: aload 0
getfield com.netflix.hystrix.AbstractCommand$7.this$0:Lcom/netflix/hystrix/AbstractCommand;
getfield com.netflix.hystrix.AbstractCommand.requestCache:Lcom/netflix/hystrix/HystrixRequestCache;
aload 2
aload 5
invokevirtual com.netflix.hystrix.HystrixRequestCache.putIfAbsent:(Ljava/lang/String;Lcom/netflix/hystrix/HystrixCachedObservable;)Lcom/netflix/hystrix/HystrixCachedObservable;
checkcast com.netflix.hystrix.HystrixCommandResponseFromCache
astore 6
start local 6 20: aload 6
ifnull 24
21: aload 5
invokevirtual com.netflix.hystrix.HystrixCachedObservable.unsubscribe:()V
22: aload 0
getfield com.netflix.hystrix.AbstractCommand$7.this$0:Lcom/netflix/hystrix/AbstractCommand;
iconst_1
putfield com.netflix.hystrix.AbstractCommand.isResponseFromCache:Z
23: aload 0
getfield com.netflix.hystrix.AbstractCommand$7.this$0:Lcom/netflix/hystrix/AbstractCommand;
aload 6
aload 0
getfield com.netflix.hystrix.AbstractCommand$7.val$_cmd:Lcom/netflix/hystrix/AbstractCommand;
invokevirtual com.netflix.hystrix.AbstractCommand.handleRequestCacheHitAndEmitValues:(Lcom/netflix/hystrix/HystrixCommandResponseFromCache;Lcom/netflix/hystrix/AbstractCommand;)Lrx/Observable;
areturn
24: StackMap locals: com.netflix.hystrix.AbstractCommand$7 int java.lang.String rx.Observable top com.netflix.hystrix.HystrixCachedObservable com.netflix.hystrix.HystrixCommandResponseFromCache
StackMap stack:
aload 5
invokevirtual com.netflix.hystrix.HystrixCachedObservable.toObservable:()Lrx/Observable;
astore 4
end local 6 end local 5 start local 4 25: goto 27
end local 4 26: StackMap locals: com.netflix.hystrix.AbstractCommand$7 int java.lang.String rx.Observable
StackMap stack:
aload 3
astore 4
start local 4 27: StackMap locals: rx.Observable
StackMap stack:
aload 4
28: aload 0
getfield com.netflix.hystrix.AbstractCommand$7.val$terminateCommandCleanup:Lrx/functions/Action0;
invokevirtual rx.Observable.doOnTerminate:(Lrx/functions/Action0;)Lrx/Observable;
29: aload 0
getfield com.netflix.hystrix.AbstractCommand$7.val$unsubscribeCommandCleanup:Lrx/functions/Action0;
invokevirtual rx.Observable.doOnUnsubscribe:(Lrx/functions/Action0;)Lrx/Observable;
30: aload 0
getfield com.netflix.hystrix.AbstractCommand$7.val$fireOnCompletedHook:Lrx/functions/Action0;
invokevirtual rx.Observable.doOnCompleted:(Lrx/functions/Action0;)Lrx/Observable;
31: areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 this Lcom/netflix/hystrix/AbstractCommand$7;
2 3 1 ex Ljava/lang/IllegalStateException;
8 32 1 requestCacheEnabled Z
9 32 2 cacheKey Ljava/lang/String;
11 14 3 fromCache Lcom/netflix/hystrix/HystrixCommandResponseFromCache<TR;>;
17 32 3 hystrixObservable Lrx/Observable<TR;>;
25 26 4 afterCache Lrx/Observable<TR;>;
27 32 4 afterCache Lrx/Observable<TR;>;
19 25 5 toCache Lcom/netflix/hystrix/HystrixCachedObservable<TR;>;
20 25 6 fromCache Lcom/netflix/hystrix/HystrixCommandResponseFromCache<TR;>;
Signature: ()Lrx/Observable<TR;>;
public java.lang.Object call();
descriptor: ()Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual com.netflix.hystrix.AbstractCommand$7.call:()Lrx/Observable;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
}
Signature: Ljava/lang/Object;Lrx/functions/Func0<Lrx/Observable<TR;>;>;
SourceFile: "AbstractCommand.java"
EnclosingMethod: com.netflix.hystrix.AbstractCommand.toObservable:()Lrx/Observable;
NestHost: com.netflix.hystrix.AbstractCommand
InnerClasses:
com.netflix.hystrix.AbstractCommand$7
protected final CommandState = com.netflix.hystrix.AbstractCommand$CommandState of com.netflix.hystrix.AbstractCommand
public final FailureType = com.netflix.hystrix.exception.HystrixRuntimeException$FailureType of com.netflix.hystrix.exception.HystrixRuntimeException