public class jdk.incubator.http.internal.common.SubscriptionBase implements java.util.concurrent.Flow$Subscription
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.incubator.http.internal.common.SubscriptionBase
super_class: java.lang.Object
{
final jdk.incubator.http.internal.common.Demand demand;
descriptor: Ljdk/incubator/http/internal/common/Demand;
flags: (0x0010) ACC_FINAL
final jdk.incubator.http.internal.common.SequentialScheduler scheduler;
descriptor: Ljdk/incubator/http/internal/common/SequentialScheduler;
flags: (0x0010) ACC_FINAL
final java.lang.Runnable cancelAction;
descriptor: Ljava/lang/Runnable;
flags: (0x0010) ACC_FINAL
final java.util.concurrent.atomic.AtomicBoolean cancelled;
descriptor: Ljava/util/concurrent/atomic/AtomicBoolean;
flags: (0x0010) ACC_FINAL
public void <init>(jdk.incubator.http.internal.common.SequentialScheduler, java.lang.Runnable);
descriptor: (Ljdk/incubator/http/internal/common/SequentialScheduler;Ljava/lang/Runnable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, 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
new jdk.incubator.http.internal.common.Demand
dup
invokespecial jdk.incubator.http.internal.common.Demand.<init>:()V
putfield jdk.incubator.http.internal.common.SubscriptionBase.demand:Ljdk/incubator/http/internal/common/Demand;
2: aload 0
aload 1
putfield jdk.incubator.http.internal.common.SubscriptionBase.scheduler:Ljdk/incubator/http/internal/common/SequentialScheduler;
3: aload 0
aload 2
putfield jdk.incubator.http.internal.common.SubscriptionBase.cancelAction:Ljava/lang/Runnable;
4: aload 0
new java.util.concurrent.atomic.AtomicBoolean
dup
iconst_0
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:(Z)V
putfield jdk.incubator.http.internal.common.SubscriptionBase.cancelled:Ljava/util/concurrent/atomic/AtomicBoolean;
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/incubator/http/internal/common/SubscriptionBase;
0 6 1 scheduler Ljdk/incubator/http/internal/common/SequentialScheduler;
0 6 2 cancelAction Ljava/lang/Runnable;
MethodParameters:
Name Flags
scheduler
cancelAction
public void request(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.internal.common.SubscriptionBase.demand:Ljdk/incubator/http/internal/common/Demand;
lload 1
invokevirtual jdk.incubator.http.internal.common.Demand.increase:(J)Z
ifeq 2
1: aload 0
getfield jdk.incubator.http.internal.common.SubscriptionBase.scheduler:Ljdk/incubator/http/internal/common/SequentialScheduler;
invokevirtual jdk.incubator.http.internal.common.SequentialScheduler.runOrSchedule:()V
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/internal/common/SubscriptionBase;
0 3 1 n J
MethodParameters:
Name Flags
n
public synchronized java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "SubscriptionBase: window = "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.incubator.http.internal.common.SubscriptionBase.demand:Ljdk/incubator/http/internal/common/Demand;
invokevirtual jdk.incubator.http.internal.common.Demand.get:()J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
1: ldc " cancelled = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield jdk.incubator.http.internal.common.SubscriptionBase.cancelled:Ljava/util/concurrent/atomic/AtomicBoolean;
invokevirtual java.util.concurrent.atomic.AtomicBoolean.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/internal/common/SubscriptionBase;
public boolean tryDecrement();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.internal.common.SubscriptionBase.demand:Ljdk/incubator/http/internal/common/Demand;
invokevirtual jdk.incubator.http.internal.common.Demand.tryDecrement:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/internal/common/SubscriptionBase;
public long window();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.internal.common.SubscriptionBase.demand:Ljdk/incubator/http/internal/common/Demand;
invokevirtual jdk.incubator.http.internal.common.Demand.get:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/internal/common/SubscriptionBase;
public void cancel();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.internal.common.SubscriptionBase.cancelled:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.getAndSet:(Z)Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.internal.common.SubscriptionBase.scheduler:Ljdk/incubator/http/internal/common/SequentialScheduler;
invokevirtual jdk.incubator.http.internal.common.SequentialScheduler.stop:()V
3: aload 0
getfield jdk.incubator.http.internal.common.SubscriptionBase.cancelAction:Ljava/lang/Runnable;
invokeinterface java.lang.Runnable.run:()V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/incubator/http/internal/common/SubscriptionBase;
}
SourceFile: "SubscriptionBase.java"
InnerClasses:
public abstract Subscription = java.util.concurrent.Flow$Subscription of java.util.concurrent.Flow