class jdk.internal.net.http.RawChannelTube$ReadSubscriber implements jdk.internal.net.http.common.FlowTube$TubeSubscriber
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.internal.net.http.RawChannelTube$ReadSubscriber
super_class: java.lang.Object
{
volatile java.util.concurrent.Flow$Subscription readSubscription;
descriptor: Ljava/util/concurrent/Flow$Subscription;
flags: (0x0040) ACC_VOLATILE
volatile boolean completed;
descriptor: Z
flags: (0x0040) ACC_VOLATILE
long initialRequest;
descriptor: J
flags: (0x0000)
final java.util.concurrent.ConcurrentLinkedQueue<jdk.internal.net.http.websocket.RawChannel$RawEvent> events;
descriptor: Ljava/util/concurrent/ConcurrentLinkedQueue;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentLinkedQueue<Ljdk/internal/net/http/websocket/RawChannel$RawEvent;>;
final java.util.concurrent.ConcurrentLinkedQueue<java.nio.ByteBuffer> buffers;
descriptor: Ljava/util/concurrent/ConcurrentLinkedQueue;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentLinkedQueue<Ljava/nio/ByteBuffer;>;
final java.util.concurrent.atomic.AtomicReference<java.lang.Throwable> errorRef;
descriptor: Ljava/util/concurrent/atomic/AtomicReference;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicReference<Ljava/lang/Throwable;>;
final jdk.internal.net.http.RawChannelTube this$0;
descriptor: Ljdk/internal/net/http/RawChannelTube;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(jdk.internal.net.http.RawChannelTube);
descriptor: (Ljdk/internal/net/http/RawChannelTube;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 0: aload 0
aload 1
putfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.this$0:Ljdk/internal/net/http/RawChannelTube;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.ConcurrentLinkedQueue
dup
invokespecial java.util.concurrent.ConcurrentLinkedQueue.<init>:()V
putfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.events:Ljava/util/concurrent/ConcurrentLinkedQueue;
2: aload 0
new java.util.concurrent.ConcurrentLinkedQueue
dup
invokespecial java.util.concurrent.ConcurrentLinkedQueue.<init>:()V
putfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.buffers:Ljava/util/concurrent/ConcurrentLinkedQueue;
3: aload 0
new java.util.concurrent.atomic.AtomicReference
dup
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:()V
putfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.errorRef:Ljava/util/concurrent/atomic/AtomicReference;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/net/http/RawChannelTube$ReadSubscriber;
MethodParameters:
Name Flags
this$0 final
void checkEvents();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.readSubscription:Ljava/util/concurrent/Flow$Subscription;
astore 1
start local 1 1: aload 1
ifnull 9
2: aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.errorRef:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast java.lang.Throwable
astore 2
start local 2 3: goto 8
4: StackMap locals: java.util.concurrent.Flow$Subscription java.lang.Throwable
StackMap stack:
aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.events:Ljava/util/concurrent/ConcurrentLinkedQueue;
invokevirtual java.util.concurrent.ConcurrentLinkedQueue.poll:()Ljava/lang/Object;
checkcast jdk.internal.net.http.websocket.RawChannel$RawEvent
astore 3
start local 3 5: aload 3
ifnonnull 6
goto 9
6: StackMap locals: jdk.internal.net.http.websocket.RawChannel$RawEvent
StackMap stack:
aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.this$0:Ljdk/internal/net/http/RawChannelTube;
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 7
aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.this$0:Ljdk/internal/net/http/RawChannelTube;
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "ReadSubscriber: handling event"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
7: StackMap locals:
StackMap stack:
aload 3
invokeinterface jdk.internal.net.http.websocket.RawChannel$RawEvent.handle:()V
end local 3 8: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.buffers:Ljava/util/concurrent/ConcurrentLinkedQueue;
invokevirtual java.util.concurrent.ConcurrentLinkedQueue.isEmpty:()Z
ifeq 4
aload 2
ifnonnull 4
aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.this$0:Ljdk/internal/net/http/RawChannelTube;
getfield jdk.internal.net.http.RawChannelTube.closed:Ljava/util/concurrent/atomic/AtomicBoolean;
invokevirtual java.util.concurrent.atomic.AtomicBoolean.get:()Z
ifne 4
aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.completed:Z
ifne 4
end local 2 9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/internal/net/http/RawChannelTube$ReadSubscriber;
1 10 1 subscription Ljava/util/concurrent/Flow$Subscription;
3 9 2 error Ljava/lang/Throwable;
5 8 3 event Ljdk/internal/net/http/websocket/RawChannel$RawEvent;
public void onSubscribe(java.util.concurrent.Flow$Subscription);
descriptor: (Ljava/util/concurrent/Flow$Subscription;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 4
monitorenter
1: aload 0
aload 1
putfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.readSubscription:Ljava/util/concurrent/Flow$Subscription;
2: aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.initialRequest:J
lstore 2
start local 2 3: aload 0
lconst_0
putfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.initialRequest:J
4: aload 4
monitorexit
5: goto 8
end local 2 StackMap locals: jdk.internal.net.http.RawChannelTube$ReadSubscriber java.util.concurrent.Flow$Subscription top top jdk.internal.net.http.RawChannelTube$ReadSubscriber
StackMap stack: java.lang.Throwable
6: aload 4
monitorexit
7: athrow
start local 2 8: StackMap locals: jdk.internal.net.http.RawChannelTube$ReadSubscriber java.util.concurrent.Flow$Subscription long
StackMap stack:
aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.this$0:Ljdk/internal/net/http/RawChannelTube;
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 9
aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.this$0:Ljdk/internal/net/http/RawChannelTube;
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "ReadSubscriber::onSubscribe"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
9: StackMap locals:
StackMap stack:
lload 2
lconst_0
lcmp
ifle 14
10: aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.errorRef:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast java.lang.Throwable
astore 4
start local 4 11: aload 4
ifnonnull 14
aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.this$0:Ljdk/internal/net/http/RawChannelTube;
getfield jdk.internal.net.http.RawChannelTube.closed:Ljava/util/concurrent/atomic/AtomicBoolean;
invokevirtual java.util.concurrent.atomic.AtomicBoolean.get:()Z
ifne 14
aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.completed:Z
ifne 14
12: aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.this$0:Ljdk/internal/net/http/RawChannelTube;
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 13
aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.this$0:Ljdk/internal/net/http/RawChannelTube;
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
new java.lang.StringBuilder
dup
ldc "readSubscription: requesting "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 2
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
13: StackMap locals: java.lang.Throwable
StackMap stack:
aload 1
lload 2
invokeinterface java.util.concurrent.Flow$Subscription.request:(J)V
end local 4 14: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.internal.net.http.RawChannelTube$ReadSubscriber.checkEvents:()V
15: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljdk/internal/net/http/RawChannelTube$ReadSubscriber;
0 16 1 subscription Ljava/util/concurrent/Flow$Subscription;
3 6 2 n J
8 16 2 n J
11 14 4 error Ljava/lang/Throwable;
Exception table:
from to target type
1 5 6 any
6 7 6 any
MethodParameters:
Name Flags
subscription
public void onNext(java.util.List<java.nio.ByteBuffer>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.this$0:Ljdk/internal/net/http/RawChannelTube;
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 1
aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.this$0:Ljdk/internal/net/http/RawChannelTube;
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
aload 1
invokedynamic get(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/internal/net/http/RawChannelTube$ReadSubscriber.lambda$0(Ljava/util/List;)Ljava/lang/String; (6)
()Ljava/lang/String;
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/util/function/Supplier;)V
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.buffers:Ljava/util/concurrent/ConcurrentLinkedQueue;
aload 1
invokevirtual java.util.concurrent.ConcurrentLinkedQueue.addAll:(Ljava/util/Collection;)Z
pop
2: aload 0
invokevirtual jdk.internal.net.http.RawChannelTube$ReadSubscriber.checkEvents:()V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/net/http/RawChannelTube$ReadSubscriber;
0 4 1 item Ljava/util/List<Ljava/nio/ByteBuffer;>;
Signature: (Ljava/util/List<Ljava/nio/ByteBuffer;>;)V
MethodParameters:
Name Flags
item
public void onError(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.this$0:Ljdk/internal/net/http/RawChannelTube;
getfield jdk.internal.net.http.RawChannelTube.closed:Ljava/util/concurrent/atomic/AtomicBoolean;
invokevirtual java.util.concurrent.atomic.AtomicBoolean.get:()Z
ifne 1
aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.errorRef:Ljava/util/concurrent/atomic/AtomicReference;
aconst_null
aload 1
invokevirtual java.util.concurrent.atomic.AtomicReference.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 5
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.this$0:Ljdk/internal/net/http/RawChannelTube;
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 2
aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.this$0:Ljdk/internal/net/http/RawChannelTube;
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "ReadSubscriber::onError"
aload 1
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;Ljava/lang/Throwable;)V
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.buffers:Ljava/util/concurrent/ConcurrentLinkedQueue;
invokevirtual java.util.concurrent.ConcurrentLinkedQueue.isEmpty:()Z
ifeq 5
3: aload 0
invokevirtual jdk.internal.net.http.RawChannelTube$ReadSubscriber.checkEvents:()V
4: aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.this$0:Ljdk/internal/net/http/RawChannelTube;
invokevirtual jdk.internal.net.http.RawChannelTube.shutdownInput:()V
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/net/http/RawChannelTube$ReadSubscriber;
0 6 1 throwable Ljava/lang/Throwable;
MethodParameters:
Name Flags
throwable
public void onComplete();
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.RawChannelTube$ReadSubscriber.this$0:Ljdk/internal/net/http/RawChannelTube;
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 1
aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.this$0:Ljdk/internal/net/http/RawChannelTube;
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "ReadSubscriber::onComplete"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
1: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.completed:Z
2: aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.buffers:Ljava/util/concurrent/ConcurrentLinkedQueue;
invokevirtual java.util.concurrent.ConcurrentLinkedQueue.isEmpty:()Z
ifeq 5
3: aload 0
invokevirtual jdk.internal.net.http.RawChannelTube$ReadSubscriber.checkEvents:()V
4: aload 0
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.this$0:Ljdk/internal/net/http/RawChannelTube;
invokevirtual jdk.internal.net.http.RawChannelTube.shutdownInput:()V
5: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/net/http/RawChannelTube$ReadSubscriber;
public void onNext(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.util.List
invokevirtual jdk.internal.net.http.RawChannelTube$ReadSubscriber.onNext:(Ljava/util/List;)V
return
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.String lambda$0(java.util.List);
descriptor: (Ljava/util/List;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
0: new java.lang.StringBuilder
dup
ldc "ReadSubscriber::onNext "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 0
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;
2: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "RawChannelTube.java"
NestHost: jdk.internal.net.http.RawChannelTube
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Subscription = java.util.concurrent.Flow$Subscription of java.util.concurrent.Flow
ReadSubscriber = jdk.internal.net.http.RawChannelTube$ReadSubscriber of jdk.internal.net.http.RawChannelTube
public abstract TubeSubscriber = jdk.internal.net.http.common.FlowTube$TubeSubscriber of jdk.internal.net.http.common.FlowTube
public abstract RawEvent = jdk.internal.net.http.websocket.RawChannel$RawEvent of jdk.internal.net.http.websocket.RawChannel