final class jdk.incubator.http.HttpConnection$PlainHttpPublisher implements jdk.incubator.http.HttpConnection$HttpPublisher
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.incubator.http.HttpConnection$PlainHttpPublisher
super_class: java.lang.Object
{
final java.lang.Object reading;
descriptor: Ljava/lang/Object;
flags: (0x0010) ACC_FINAL
final java.util.concurrent.ConcurrentLinkedDeque<java.util.List<java.nio.ByteBuffer>> queue;
descriptor: Ljava/util/concurrent/ConcurrentLinkedDeque;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentLinkedDeque<Ljava/util/List<Ljava/nio/ByteBuffer;>;>;
volatile java.util.concurrent.Flow$Subscriber<? super java.util.List<java.nio.ByteBuffer>> subscriber;
descriptor: Ljava/util/concurrent/Flow$Subscriber;
flags: (0x0040) ACC_VOLATILE
Signature: Ljava/util/concurrent/Flow$Subscriber<-Ljava/util/List<Ljava/nio/ByteBuffer;>;>;
volatile jdk.incubator.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription subscription;
descriptor: Ljdk/incubator/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;
flags: (0x0040) ACC_VOLATILE
final jdk.incubator.http.internal.common.SequentialScheduler writeScheduler;
descriptor: Ljdk/incubator/http/internal/common/SequentialScheduler;
flags: (0x0010) ACC_FINAL
final jdk.incubator.http.HttpConnection this$0;
descriptor: Ljdk/incubator/http/HttpConnection;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(jdk.incubator.http.HttpConnection);
descriptor: (Ljdk/incubator/http/HttpConnection;)V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 0: aload 0
aload 1
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
invokespecial jdk.incubator.http.HttpConnection$PlainHttpPublisher.<init>:(Ljdk/incubator/http/HttpConnection;Ljava/lang/Object;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;
MethodParameters:
Name Flags
this$0 final
void <init>(jdk.incubator.http.HttpConnection, java.lang.Object);
descriptor: (Ljdk/incubator/http/HttpConnection;Ljava/lang/Object;)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=3
start local 0 start local 2 0: aload 0
aload 1
putfield jdk.incubator.http.HttpConnection$PlainHttpPublisher.this$0:Ljdk/incubator/http/HttpConnection;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.ConcurrentLinkedDeque
dup
invokespecial java.util.concurrent.ConcurrentLinkedDeque.<init>:()V
putfield jdk.incubator.http.HttpConnection$PlainHttpPublisher.queue:Ljava/util/concurrent/ConcurrentLinkedDeque;
2: aload 0
3: new jdk.incubator.http.internal.common.SequentialScheduler
dup
aload 0
invokedynamic run(Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;)Ljdk/incubator/http/internal/common/SequentialScheduler$RestartableTask;
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:
(Ljdk/incubator/http/internal/common/SequentialScheduler$DeferredCompleter;)V
jdk/incubator/http/HttpConnection$PlainHttpPublisher.flushTask(Ljdk/incubator/http/internal/common/SequentialScheduler$DeferredCompleter;)V (5)
(Ljdk/incubator/http/internal/common/SequentialScheduler$DeferredCompleter;)V
invokespecial jdk.incubator.http.internal.common.SequentialScheduler.<init>:(Ljdk/incubator/http/internal/common/SequentialScheduler$RestartableTask;)V
putfield jdk.incubator.http.HttpConnection$PlainHttpPublisher.writeScheduler:Ljdk/incubator/http/internal/common/SequentialScheduler;
4: aload 0
aload 2
putfield jdk.incubator.http.HttpConnection$PlainHttpPublisher.reading:Ljava/lang/Object;
5: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;
0 6 2 readingLock Ljava/lang/Object;
MethodParameters:
Name Flags
this$0 final
readingLock
public void subscribe(java.util.concurrent.Flow$Subscriber<? super java.util.List<java.nio.ByteBuffer>>);
descriptor: (Ljava/util/concurrent/Flow$Subscriber;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.HttpConnection$PlainHttpPublisher.reading:Ljava/lang/Object;
dup
astore 2
monitorenter
1: aload 0
getfield jdk.incubator.http.HttpConnection$PlainHttpPublisher.subscription:Ljdk/incubator/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;
ifnonnull 3
2: aload 0
new jdk.incubator.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription
dup
aload 0
invokespecial jdk.incubator.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.<init>:(Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;)V
putfield jdk.incubator.http.HttpConnection$PlainHttpPublisher.subscription:Ljdk/incubator/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;
3: StackMap locals: java.lang.Object
StackMap stack:
aload 0
aload 1
putfield jdk.incubator.http.HttpConnection$PlainHttpPublisher.subscriber:Ljava/util/concurrent/Flow$Subscriber;
4: aload 2
monitorexit
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 2
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield jdk.incubator.http.HttpConnection$PlainHttpPublisher.subscription:Ljdk/incubator/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;
invokeinterface java.util.concurrent.Flow$Subscriber.onSubscribe:(Ljava/util/concurrent/Flow$Subscription;)V
9: aload 0
invokevirtual jdk.incubator.http.HttpConnection$PlainHttpPublisher.signal:()V
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;
0 11 1 subscriber Ljava/util/concurrent/Flow$Subscriber<-Ljava/util/List<Ljava/nio/ByteBuffer;>;>;
Exception table:
from to target type
1 5 6 any
6 7 6 any
Signature: (Ljava/util/concurrent/Flow$Subscriber<-Ljava/util/List<Ljava/nio/ByteBuffer;>;>;)V
MethodParameters:
Name Flags
subscriber
void flushTask(jdk.incubator.http.internal.common.SequentialScheduler$DeferredCompleter);
descriptor: (Ljdk/incubator/http/internal/common/SequentialScheduler$DeferredCompleter;)V
flags: (0x0000)
Code:
stack=1, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.HttpConnection$PlainHttpPublisher.subscription:Ljdk/incubator/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;
astore 2
start local 2 1: aload 2
ifnull 6
aload 2
invokevirtual jdk.incubator.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.flush:()V
end local 2 2: goto 6
StackMap locals:
StackMap stack: java.lang.Throwable
3: astore 3
4: aload 1
invokevirtual jdk.incubator.http.internal.common.SequentialScheduler$DeferredCompleter.complete:()V
5: aload 3
athrow
6: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.incubator.http.internal.common.SequentialScheduler$DeferredCompleter.complete:()V
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;
0 8 1 completer Ljdk/incubator/http/internal/common/SequentialScheduler$DeferredCompleter;
1 2 2 sub Ljdk/incubator/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;
Exception table:
from to target type
0 3 3 any
MethodParameters:
Name Flags
completer
void signal();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.HttpConnection$PlainHttpPublisher.writeScheduler:Ljdk/incubator/http/internal/common/SequentialScheduler;
invokevirtual jdk.incubator.http.internal.common.SequentialScheduler.runOrSchedule:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;
public void enqueue(java.util.List<java.nio.ByteBuffer>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.HttpConnection$PlainHttpPublisher.queue:Ljava/util/concurrent/ConcurrentLinkedDeque;
aload 1
invokevirtual java.util.concurrent.ConcurrentLinkedDeque.add:(Ljava/lang/Object;)Z
pop
1: aload 1
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
invokedynamic applyAsInt()Ljava/util/function/ToIntFunction;
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;)I
java/nio/Buffer.remaining()I (5)
(Ljava/nio/ByteBuffer;)I
invokeinterface java.util.stream.Stream.mapToInt:(Ljava/util/function/ToIntFunction;)Ljava/util/stream/IntStream;
invokeinterface java.util.stream.IntStream.sum:()I
istore 2
start local 2 2: aload 0
getfield jdk.incubator.http.HttpConnection$PlainHttpPublisher.this$0: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;
ldc "added %d bytes to the write queue"
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;[Ljava/lang/Object;)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;
0 4 1 buffers Ljava/util/List<Ljava/nio/ByteBuffer;>;
2 4 2 bytes I
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/List<Ljava/nio/ByteBuffer;>;)V
MethodParameters:
Name Flags
buffers
public void enqueueUnordered(java.util.List<java.nio.ByteBuffer>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
invokedynamic applyAsInt()Ljava/util/function/ToIntFunction;
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;)I
java/nio/Buffer.remaining()I (5)
(Ljava/nio/ByteBuffer;)I
invokeinterface java.util.stream.Stream.mapToInt:(Ljava/util/function/ToIntFunction;)Ljava/util/stream/IntStream;
invokeinterface java.util.stream.IntStream.sum:()I
istore 2
start local 2 1: aload 0
getfield jdk.incubator.http.HttpConnection$PlainHttpPublisher.queue:Ljava/util/concurrent/ConcurrentLinkedDeque;
aload 1
invokevirtual java.util.concurrent.ConcurrentLinkedDeque.addFirst:(Ljava/lang/Object;)V
2: aload 0
getfield jdk.incubator.http.HttpConnection$PlainHttpPublisher.this$0: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;
ldc "inserted %d bytes in the write queue"
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;[Ljava/lang/Object;)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;
0 4 1 buffers Ljava/util/List<Ljava/nio/ByteBuffer;>;
1 4 2 bytes I
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/List<Ljava/nio/ByteBuffer;>;)V
MethodParameters:
Name Flags
buffers
public void signalEnqueued();
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.this$0: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;
ldc "signalling the publisher of the write queue"
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;)V
1: aload 0
invokevirtual jdk.incubator.http.HttpConnection$PlainHttpPublisher.signal:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;
Exceptions:
throws java.io.IOException
static jdk.incubator.http.HttpConnection access$0(jdk.incubator.http.HttpConnection$PlainHttpPublisher);
descriptor: (Ljdk/incubator/http/HttpConnection$PlainHttpPublisher;)Ljdk/incubator/http/HttpConnection;
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
getfield jdk.incubator.http.HttpConnection$PlainHttpPublisher.this$0:Ljdk/incubator/http/HttpConnection;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
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
abstract HttpPublisher = jdk.incubator.http.HttpConnection$HttpPublisher of jdk.incubator.http.HttpConnection
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
public abstract DeferredCompleter = jdk.incubator.http.internal.common.SequentialScheduler$DeferredCompleter of jdk.incubator.http.internal.common.SequentialScheduler
public abstract RestartableTask = jdk.incubator.http.internal.common.SequentialScheduler$RestartableTask of jdk.incubator.http.internal.common.SequentialScheduler