final class jdk.incubator.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.incubator.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription
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.HttpConnection$PlainHttpPublisher this$1;
descriptor: Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(jdk.incubator.http.HttpConnection$PlainHttpPublisher);
descriptor: (Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 0: aload 0
aload 1
putfield jdk.incubator.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.this$1:Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;
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.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.demand:Ljdk/incubator/http/internal/common/Demand;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;
MethodParameters:
Name Flags
this$0 final
public void request(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, 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.incubator.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.demand:Ljdk/incubator/http/internal/common/Demand;
lload 1
invokevirtual jdk.incubator.http.internal.common.Demand.increase:(J)Z
pop
2: aload 0
getfield jdk.incubator.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.this$1:Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;
invokestatic jdk.incubator.http.HttpConnection$PlainHttpPublisher.access$0:(Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;)Ljdk/incubator/http/HttpConnection;
getfield jdk.incubator.http.HttpConnection.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
aload 0
lload 1
invokedynamic get(Ljdk/incubator/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;J)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
jdk/incubator/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription.lambda$0(J)Ljava/lang/String; (7)
()Ljava/lang/String;
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/util/function/Supplier;)V
3: aload 0
getfield jdk.incubator.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.this$1:Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;
getfield jdk.incubator.http.HttpConnection$PlainHttpPublisher.writeScheduler:Ljdk/incubator/http/internal/common/SequentialScheduler;
invokevirtual jdk.incubator.http.internal.common.SequentialScheduler.runOrSchedule:()V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/incubator/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;
0 5 1 n J
MethodParameters:
Name Flags
n
public void cancel();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.this$1:Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;
invokestatic jdk.incubator.http.HttpConnection$PlainHttpPublisher.access$0:(Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;)Ljdk/incubator/http/HttpConnection;
getfield jdk.incubator.http.HttpConnection.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
aload 0
invokedynamic get(Ljdk/incubator/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
jdk/incubator/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription.lambda$1()Ljava/lang/String; (7)
()Ljava/lang/String;
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/util/function/Supplier;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;
void flush();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=1
start local 0 0: goto 4
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.this$1:Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;
getfield jdk.incubator.http.HttpConnection$PlainHttpPublisher.queue:Ljava/util/concurrent/ConcurrentLinkedDeque;
invokevirtual java.util.concurrent.ConcurrentLinkedDeque.poll:()Ljava/lang/Object;
checkcast java.util.List
astore 1
start local 1 2: aload 0
getfield jdk.incubator.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.this$1:Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;
invokestatic jdk.incubator.http.HttpConnection$PlainHttpPublisher.access$0:(Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;)Ljdk/incubator/http/HttpConnection;
getfield jdk.incubator.http.HttpConnection.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
aload 0
aload 1
invokedynamic get(Ljdk/incubator/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;Ljava/util/List;)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
jdk/incubator/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription.lambda$2(Ljava/util/List;)Ljava/lang/String; (7)
()Ljava/lang/String;
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/util/function/Supplier;)V
3: aload 0
getfield jdk.incubator.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.this$1:Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;
getfield jdk.incubator.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 4: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.this$1:Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;
getfield jdk.incubator.http.HttpConnection$PlainHttpPublisher.queue:Ljava/util/concurrent/ConcurrentLinkedDeque;
invokevirtual java.util.concurrent.ConcurrentLinkedDeque.isEmpty:()Z
ifne 5
aload 0
getfield jdk.incubator.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.demand:Ljdk/incubator/http/internal/common/Demand;
invokevirtual jdk.incubator.http.internal.common.Demand.tryDecrement:()Z
ifne 1
5: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/incubator/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;
2 4 1 elem Ljava/util/List<Ljava/nio/ByteBuffer;>;
private java.lang.String lambda$0(long);
descriptor: (J)Ljava/lang/String;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=2
start local 0 0: new java.lang.StringBuilder
dup
ldc "HttpPublisher: got request of "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: lload 1
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " from "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: aload 0
getfield jdk.incubator.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.this$1:Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;
invokestatic jdk.incubator.http.HttpConnection$PlainHttpPublisher.access$0:(Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;)Ljdk/incubator/http/HttpConnection;
invokevirtual jdk.incubator.http.HttpConnection.getConnectionFlow:()Ljdk/incubator/http/internal/common/FlowTube;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
3: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
4: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/incubator/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;
private java.lang.String lambda$1();
descriptor: ()Ljava/lang/String;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "HttpPublisher: cancelled by "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 0
getfield jdk.incubator.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.this$1:Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;
invokestatic jdk.incubator.http.HttpConnection$PlainHttpPublisher.access$0:(Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;)Ljdk/incubator/http/HttpConnection;
invokevirtual jdk.incubator.http.HttpConnection.getConnectionFlow:()Ljdk/incubator/http/internal/common/FlowTube;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/incubator/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;
private java.lang.String lambda$2(java.util.List);
descriptor: (Ljava/util/List;)Ljava/lang/String;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
start local 0 0: new java.lang.StringBuilder
dup
ldc "HttpPublisher: sending "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 1
invokestatic jdk.incubator.http.internal.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;
2: 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;
3: aload 0
getfield jdk.incubator.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.this$1:Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;
invokestatic jdk.incubator.http.HttpConnection$PlainHttpPublisher.access$0:(Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;)Ljdk/incubator/http/HttpConnection;
invokevirtual jdk.incubator.http.HttpConnection.getConnectionFlow:()Ljdk/incubator/http/internal/common/FlowTube;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
4: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/incubator/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;
}
SourceFile: "HttpConnection.java"
NestHost: jdk.incubator.http.HttpConnection
InnerClasses:
public abstract Logger = java.lang.System$Logger of java.lang.System
public final Level = java.lang.System$Logger$Level of java.lang.System$Logger
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
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.incubator.http.HttpConnection$PlainHttpPublisher of jdk.incubator.http.HttpConnection
final HttpWriteSubscription = jdk.incubator.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription of jdk.incubator.http.HttpConnection$PlainHttpPublisher