final class jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription implements java.util.concurrent.Flow$Subscription
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription
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.HttpConnection$PlainHttpPublisher this$1;
descriptor: Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(jdk.internal.net.http.HttpConnection$PlainHttpPublisher);
descriptor: (Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 0: aload 0
aload 1
putfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.this$1:Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;
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.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.demand:Ljdk/internal/net/http/common/Demand;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;
MethodParameters:
Name Flags
this$0 final
public void request(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: lload 1
lconst_0
lcmp
ifgt 1
new java.lang.IllegalArgumentException
dup
ldc "non-positive request"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.demand:Ljdk/internal/net/http/common/Demand;
lload 1
invokevirtual jdk.internal.net.http.common.Demand.increase:(J)Z
pop
2: aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.this$1:Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;
invokestatic jdk.internal.net.http.HttpConnection$PlainHttpPublisher.access$0:(Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;)Ljdk/internal/net/http/HttpConnection;
getfield jdk.internal.net.http.HttpConnection.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 6
3: aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.this$1:Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;
invokestatic jdk.internal.net.http.HttpConnection$PlainHttpPublisher.access$0:(Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;)Ljdk/internal/net/http/HttpConnection;
getfield jdk.internal.net.http.HttpConnection.debug:Ljdk/internal/net/http/common/Logger;
new java.lang.StringBuilder
dup
ldc "HttpPublisher: got request of "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 1
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " from "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.this$1:Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;
invokestatic jdk.internal.net.http.HttpConnection$PlainHttpPublisher.access$0:(Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;)Ljdk/internal/net/http/HttpConnection;
invokevirtual jdk.internal.net.http.HttpConnection.getConnectionFlow:()Ljdk/internal/net/http/common/FlowTube;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
6: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.this$1:Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher.writeScheduler:Ljdk/internal/net/http/common/SequentialScheduler;
invokevirtual jdk.internal.net.http.common.SequentialScheduler.runOrSchedule:()V
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;
0 8 1 n J
MethodParameters:
Name Flags
n
public void cancel();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.this$1:Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;
invokestatic jdk.internal.net.http.HttpConnection$PlainHttpPublisher.access$0:(Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;)Ljdk/internal/net/http/HttpConnection;
getfield jdk.internal.net.http.HttpConnection.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 2
1: aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.this$1:Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;
invokestatic jdk.internal.net.http.HttpConnection$PlainHttpPublisher.access$0:(Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;)Ljdk/internal/net/http/HttpConnection;
getfield jdk.internal.net.http.HttpConnection.debug:Ljdk/internal/net/http/common/Logger;
new java.lang.StringBuilder
dup
ldc "HttpPublisher: cancelled by "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.this$1:Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;
invokestatic jdk.internal.net.http.HttpConnection$PlainHttpPublisher.access$0:(Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;)Ljdk/internal/net/http/HttpConnection;
invokevirtual jdk.internal.net.http.HttpConnection.getConnectionFlow:()Ljdk/internal/net/http/common/FlowTube;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;
private boolean isEmpty();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.this$1:Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher.queue:Ljava/util/concurrent/ConcurrentLinkedDeque;
invokevirtual java.util.concurrent.ConcurrentLinkedDeque.isEmpty:()Z
ifeq 1
aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.this$1:Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher.priority:Ljava/util/concurrent/ConcurrentLinkedDeque;
invokevirtual java.util.concurrent.ConcurrentLinkedDeque.isEmpty:()Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;
private java.util.List<java.nio.ByteBuffer> poll();
descriptor: ()Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.this$1:Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher.priority:Ljava/util/concurrent/ConcurrentLinkedDeque;
invokevirtual java.util.concurrent.ConcurrentLinkedDeque.poll:()Ljava/lang/Object;
checkcast java.util.List
astore 1
start local 1 1: aload 1
ifnonnull 2
aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.this$1:Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher.queue:Ljava/util/concurrent/ConcurrentLinkedDeque;
invokevirtual java.util.concurrent.ConcurrentLinkedDeque.poll:()Ljava/lang/Object;
checkcast java.util.List
goto 3
StackMap locals: java.util.List
StackMap stack:
2: aload 1
StackMap locals:
StackMap stack: java.util.List
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;
1 4 1 elem Ljava/util/List<Ljava/nio/ByteBuffer;>;
Signature: ()Ljava/util/List<Ljava/nio/ByteBuffer;>;
void flush();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=1
start local 0 0: goto 9
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.poll:()Ljava/util/List;
astore 1
start local 1 2: aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.this$1:Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;
invokestatic jdk.internal.net.http.HttpConnection$PlainHttpPublisher.access$0:(Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;)Ljdk/internal/net/http/HttpConnection;
getfield jdk.internal.net.http.HttpConnection.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 8
3: aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.this$1:Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;
invokestatic jdk.internal.net.http.HttpConnection$PlainHttpPublisher.access$0:(Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;)Ljdk/internal/net/http/HttpConnection;
getfield jdk.internal.net.http.HttpConnection.debug:Ljdk/internal/net/http/common/Logger;
new java.lang.StringBuilder
dup
ldc "HttpPublisher: sending "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
4: aload 1
invokestatic jdk.internal.net.http.common.Utils.remaining:(Ljava/util/List;)J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " bytes ("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: aload 1
invokeinterface java.util.List.size:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " buffers) to "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.this$1:Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;
invokestatic jdk.internal.net.http.HttpConnection$PlainHttpPublisher.access$0:(Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;)Ljdk/internal/net/http/HttpConnection;
invokevirtual jdk.internal.net.http.HttpConnection.getConnectionFlow:()Ljdk/internal/net/http/common/FlowTube;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
8: StackMap locals: java.util.List
StackMap stack:
aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.this$1:Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher.subscriber:Ljava/util/concurrent/Flow$Subscriber;
aload 1
invokeinterface java.util.concurrent.Flow$Subscriber.onNext:(Ljava/lang/Object;)V
end local 1 9: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.isEmpty:()Z
ifne 10
aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.demand:Ljdk/internal/net/http/common/Demand;
invokevirtual jdk.internal.net.http.common.Demand.tryDecrement:()Z
ifne 1
10: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;
2 9 1 elem Ljava/util/List<Ljava/nio/ByteBuffer;>;
}
SourceFile: "HttpConnection.java"
NestHost: jdk.internal.net.http.HttpConnection
InnerClasses:
public abstract Subscriber = java.util.concurrent.Flow$Subscriber of java.util.concurrent.Flow
public abstract Subscription = java.util.concurrent.Flow$Subscription of java.util.concurrent.Flow
final PlainHttpPublisher = jdk.internal.net.http.HttpConnection$PlainHttpPublisher of jdk.internal.net.http.HttpConnection
final HttpWriteSubscription = jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription of jdk.internal.net.http.HttpConnection$PlainHttpPublisher