public class jdk.internal.net.http.common.SubscriptionBase implements java.util.concurrent.Flow$Subscription
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.net.http.common.SubscriptionBase
super_class: java.lang.Object
{
final jdk.internal.net.http.common.Demand demand;
descriptor: Ljdk/internal/net/http/common/Demand;
flags: (0x0010) ACC_FINAL
final jdk.internal.net.http.common.SequentialScheduler scheduler;
descriptor: Ljdk/internal/net/http/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
final java.util.function.Consumer<java.lang.Throwable> onError;
descriptor: Ljava/util/function/Consumer;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/function/Consumer<Ljava/lang/Throwable;>;
public void <init>(jdk.internal.net.http.common.SequentialScheduler, java.lang.Runnable);
descriptor: (Ljdk/internal/net/http/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
aload 1
aload 2
aconst_null
invokespecial jdk.internal.net.http.common.SubscriptionBase.<init>:(Ljdk/internal/net/http/common/SequentialScheduler;Ljava/lang/Runnable;Ljava/util/function/Consumer;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/net/http/common/SubscriptionBase;
0 2 1 scheduler Ljdk/internal/net/http/common/SequentialScheduler;
0 2 2 cancelAction Ljava/lang/Runnable;
MethodParameters:
Name Flags
scheduler
cancelAction
public void <init>(jdk.internal.net.http.common.SequentialScheduler, java.lang.Runnable, java.util.function.Consumer<java.lang.Throwable>);
descriptor: (Ljdk/internal/net/http/common/SequentialScheduler;Ljava/lang/Runnable;Ljava/util/function/Consumer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new jdk.internal.net.http.common.Demand
dup
invokespecial jdk.internal.net.http.common.Demand.<init>:()V
putfield jdk.internal.net.http.common.SubscriptionBase.demand:Ljdk/internal/net/http/common/Demand;
2: aload 0
aload 1
putfield jdk.internal.net.http.common.SubscriptionBase.scheduler:Ljdk/internal/net/http/common/SequentialScheduler;
3: aload 0
aload 2
putfield jdk.internal.net.http.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.internal.net.http.common.SubscriptionBase.cancelled:Ljava/util/concurrent/atomic/AtomicBoolean;
5: aload 0
aload 3
putfield jdk.internal.net.http.common.SubscriptionBase.onError:Ljava/util/function/Consumer;
6: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/net/http/common/SubscriptionBase;
0 7 1 scheduler Ljdk/internal/net/http/common/SequentialScheduler;
0 7 2 cancelAction Ljava/lang/Runnable;
0 7 3 onError Ljava/util/function/Consumer<Ljava/lang/Throwable;>;
Signature: (Ljdk/internal/net/http/common/SequentialScheduler;Ljava/lang/Runnable;Ljava/util/function/Consumer<Ljava/lang/Throwable;>;)V
MethodParameters:
Name Flags
scheduler
cancelAction
onError
public void request(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.net.http.common.SubscriptionBase.demand:Ljdk/internal/net/http/common/Demand;
lload 1
invokevirtual jdk.internal.net.http.common.Demand.increase:(J)Z
ifeq 10
1: aload 0
getfield jdk.internal.net.http.common.SubscriptionBase.scheduler:Ljdk/internal/net/http/common/SequentialScheduler;
invokevirtual jdk.internal.net.http.common.SequentialScheduler.runOrSchedule:()V
2: goto 10
StackMap locals:
StackMap stack: java.lang.Throwable
3: astore 3
start local 3 4: aload 0
getfield jdk.internal.net.http.common.SubscriptionBase.onError:Ljava/util/function/Consumer;
ifnull 9
5: aload 0
getfield jdk.internal.net.http.common.SubscriptionBase.cancelled:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.getAndSet:(Z)Z
ifeq 7
6: return
7: StackMap locals: java.lang.Throwable
StackMap stack:
aload 0
getfield jdk.internal.net.http.common.SubscriptionBase.onError:Ljava/util/function/Consumer;
aload 3
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
8: goto 10
StackMap locals:
StackMap stack:
9: aload 3
athrow
end local 3 10: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/internal/net/http/common/SubscriptionBase;
0 11 1 n J
4 10 3 t Ljava/lang/Throwable;
Exception table:
from to target type
0 2 3 Class java.lang.Throwable
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.internal.net.http.common.SubscriptionBase.demand:Ljdk/internal/net/http/common/Demand;
invokevirtual jdk.internal.net.http.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.internal.net.http.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/internal/net/http/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.internal.net.http.common.SubscriptionBase.demand:Ljdk/internal/net/http/common/Demand;
invokevirtual jdk.internal.net.http.common.Demand.tryDecrement:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/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.internal.net.http.common.SubscriptionBase.demand:Ljdk/internal/net/http/common/Demand;
invokevirtual jdk.internal.net.http.common.Demand.get:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/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.internal.net.http.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.internal.net.http.common.SubscriptionBase.scheduler:Ljdk/internal/net/http/common/SequentialScheduler;
invokevirtual jdk.internal.net.http.common.SequentialScheduler.stop:()V
3: aload 0
getfield jdk.internal.net.http.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/internal/net/http/common/SubscriptionBase;
}
SourceFile: "SubscriptionBase.java"
InnerClasses:
public abstract Subscription = java.util.concurrent.Flow$Subscription of java.util.concurrent.Flow