class com.netflix.hystrix.AbstractCommand$TryableSemaphoreActual implements com.netflix.hystrix.AbstractCommand$TryableSemaphore
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.netflix.hystrix.AbstractCommand$TryableSemaphoreActual
super_class: java.lang.Object
{
protected final com.netflix.hystrix.strategy.properties.HystrixProperty<java.lang.Integer> numberOfPermits;
descriptor: Lcom/netflix/hystrix/strategy/properties/HystrixProperty;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Lcom/netflix/hystrix/strategy/properties/HystrixProperty<Ljava/lang/Integer;>;
private final java.util.concurrent.atomic.AtomicInteger count;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(com.netflix.hystrix.strategy.properties.HystrixProperty<java.lang.Integer>);
descriptor: (Lcom/netflix/hystrix/strategy/properties/HystrixProperty;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.atomic.AtomicInteger
dup
iconst_0
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
putfield com.netflix.hystrix.AbstractCommand$TryableSemaphoreActual.count:Ljava/util/concurrent/atomic/AtomicInteger;
2: aload 0
aload 1
putfield com.netflix.hystrix.AbstractCommand$TryableSemaphoreActual.numberOfPermits:Lcom/netflix/hystrix/strategy/properties/HystrixProperty;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/netflix/hystrix/AbstractCommand$TryableSemaphoreActual;
0 4 1 numberOfPermits Lcom/netflix/hystrix/strategy/properties/HystrixProperty<Ljava/lang/Integer;>;
Signature: (Lcom/netflix/hystrix/strategy/properties/HystrixProperty<Ljava/lang/Integer;>;)V
MethodParameters:
Name Flags
numberOfPermits
public boolean tryAcquire();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield com.netflix.hystrix.AbstractCommand$TryableSemaphoreActual.count:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.incrementAndGet:()I
istore 1
start local 1 1: iload 1
aload 0
getfield com.netflix.hystrix.AbstractCommand$TryableSemaphoreActual.numberOfPermits:Lcom/netflix/hystrix/strategy/properties/HystrixProperty;
invokeinterface com.netflix.hystrix.strategy.properties.HystrixProperty.get:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
if_icmple 4
2: aload 0
getfield com.netflix.hystrix.AbstractCommand$TryableSemaphoreActual.count:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.decrementAndGet:()I
pop
3: iconst_0
ireturn
4: StackMap locals: int
StackMap stack:
iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/netflix/hystrix/AbstractCommand$TryableSemaphoreActual;
1 5 1 currentCount I
public void release();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.netflix.hystrix.AbstractCommand$TryableSemaphoreActual.count:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.decrementAndGet:()I
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/netflix/hystrix/AbstractCommand$TryableSemaphoreActual;
public int getNumberOfPermitsUsed();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.netflix.hystrix.AbstractCommand$TryableSemaphoreActual.count:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/netflix/hystrix/AbstractCommand$TryableSemaphoreActual;
}
SourceFile: "AbstractCommand.java"
NestHost: com.netflix.hystrix.AbstractCommand
InnerClasses:
abstract TryableSemaphore = com.netflix.hystrix.AbstractCommand$TryableSemaphore of com.netflix.hystrix.AbstractCommand
TryableSemaphoreActual = com.netflix.hystrix.AbstractCommand$TryableSemaphoreActual of com.netflix.hystrix.AbstractCommand