final class jdk.incubator.http.internal.websocket.Receiver
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.incubator.http.internal.websocket.Receiver
super_class: java.lang.Object
{
private final jdk.incubator.http.internal.websocket.MessageStreamConsumer messageConsumer;
descriptor: Ljdk/incubator/http/internal/websocket/MessageStreamConsumer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.incubator.http.internal.websocket.RawChannel channel;
descriptor: Ljdk/incubator/http/internal/websocket/RawChannel;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.incubator.http.internal.websocket.FrameConsumer frameConsumer;
descriptor: Ljdk/incubator/http/internal/websocket/FrameConsumer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.incubator.http.internal.websocket.Frame$Reader reader;
descriptor: Ljdk/incubator/http/internal/websocket/Frame$Reader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.incubator.http.internal.websocket.RawChannel$RawEvent event;
descriptor: Ljdk/incubator/http/internal/websocket/RawChannel$RawEvent;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.atomic.AtomicLong demand;
descriptor: Ljava/util/concurrent/atomic/AtomicLong;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.incubator.http.internal.websocket.CooperativeHandler handler;
descriptor: Ljdk/incubator/http/internal/websocket/CooperativeHandler;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.nio.ByteBuffer data;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0002) ACC_PRIVATE
private volatile int state;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private static final int UNREGISTERED;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private static final int AVAILABLE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int WAITING;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Ljdk/incubator/http/internal/websocket/Receiver;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic jdk.incubator.http.internal.websocket.Receiver.$assertionsDisabled:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(jdk.incubator.http.internal.websocket.MessageStreamConsumer, jdk.incubator.http.internal.websocket.RawChannel);
descriptor: (Ljdk/incubator/http/internal/websocket/MessageStreamConsumer;Ljdk/incubator/http/internal/websocket/RawChannel;)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new jdk.incubator.http.internal.websocket.Frame$Reader
dup
invokespecial jdk.incubator.http.internal.websocket.Frame$Reader.<init>:()V
putfield jdk.incubator.http.internal.websocket.Receiver.reader:Ljdk/incubator/http/internal/websocket/Frame$Reader;
2: aload 0
aload 0
invokevirtual jdk.incubator.http.internal.websocket.Receiver.createHandler:()Ljdk/incubator/http/internal/websocket/RawChannel$RawEvent;
putfield jdk.incubator.http.internal.websocket.Receiver.event:Ljdk/incubator/http/internal/websocket/RawChannel$RawEvent;
3: aload 0
new java.util.concurrent.atomic.AtomicLong
dup
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
putfield jdk.incubator.http.internal.websocket.Receiver.demand:Ljava/util/concurrent/atomic/AtomicLong;
4: aload 0
aload 1
putfield jdk.incubator.http.internal.websocket.Receiver.messageConsumer:Ljdk/incubator/http/internal/websocket/MessageStreamConsumer;
5: aload 0
aload 2
putfield jdk.incubator.http.internal.websocket.Receiver.channel:Ljdk/incubator/http/internal/websocket/RawChannel;
6: aload 0
new jdk.incubator.http.internal.websocket.FrameConsumer
dup
aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.messageConsumer:Ljdk/incubator/http/internal/websocket/MessageStreamConsumer;
invokespecial jdk.incubator.http.internal.websocket.FrameConsumer.<init>:(Ljdk/incubator/http/internal/websocket/MessageStreamConsumer;)V
putfield jdk.incubator.http.internal.websocket.Receiver.frameConsumer:Ljdk/incubator/http/internal/websocket/FrameConsumer;
7: aload 0
aload 2
invokeinterface jdk.incubator.http.internal.websocket.RawChannel.initialByteBuffer:()Ljava/nio/ByteBuffer;
putfield jdk.incubator.http.internal.websocket.Receiver.data:Ljava/nio/ByteBuffer;
8: aload 0
new jdk.incubator.http.internal.websocket.CooperativeHandler
dup
aload 0
invokedynamic run(Ljdk/incubator/http/internal/websocket/Receiver;)Ljava/lang/Runnable;
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:
()V
jdk/incubator/http/internal/websocket/Receiver.pushContinuously()V (7)
()V
invokespecial jdk.incubator.http.internal.websocket.CooperativeHandler.<init>:(Ljava/lang/Runnable;)V
putfield jdk.incubator.http.internal.websocket.Receiver.handler:Ljdk/incubator/http/internal/websocket/CooperativeHandler;
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/incubator/http/internal/websocket/Receiver;
0 10 1 messageConsumer Ljdk/incubator/http/internal/websocket/MessageStreamConsumer;
0 10 2 channel Ljdk/incubator/http/internal/websocket/RawChannel;
MethodParameters:
Name Flags
messageConsumer
channel
private jdk.incubator.http.internal.websocket.RawChannel$RawEvent createHandler();
descriptor: ()Ljdk/incubator/http/internal/websocket/RawChannel$RawEvent;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: new jdk.incubator.http.internal.websocket.Receiver$1
dup
aload 0
invokespecial jdk.incubator.http.internal.websocket.Receiver$1.<init>:(Ljdk/incubator/http/internal/websocket/Receiver;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/internal/websocket/Receiver;
void request(long);
descriptor: (J)V
flags: (0x0000)
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: lload 1
lconst_0
lcmp
ifge 2
1: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Negative: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 1
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.demand:Ljava/util/concurrent/atomic/AtomicLong;
lload 1
invokedynamic applyAsLong()Ljava/util/function/LongBinaryOperator;
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:
(JJ)J
jdk/incubator/http/internal/websocket/Receiver.lambda$1(JJ)J (6)
(JJ)J
invokevirtual java.util.concurrent.atomic.AtomicLong.accumulateAndGet:(JLjava/util/function/LongBinaryOperator;)J
pop2
3: aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.handler:Ljdk/incubator/http/internal/websocket/CooperativeHandler;
invokevirtual jdk.incubator.http.internal.websocket.CooperativeHandler.handle:()V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/incubator/http/internal/websocket/Receiver;
0 5 1 n J
MethodParameters:
Name Flags
n
void acknowledge();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.demand:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.decrementAndGet:()J
lstore 1
start local 1 1: lload 1
lconst_0
lcmp
ifge 3
2: new java.lang.InternalError
dup
lload 1
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: long
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/incubator/http/internal/websocket/Receiver;
1 4 1 x J
void close();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.handler:Ljdk/incubator/http/internal/websocket/CooperativeHandler;
invokevirtual jdk.incubator.http.internal.websocket.CooperativeHandler.stop:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/http/internal/websocket/Receiver;
private void pushContinuously();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=1
start local 0 0: goto 34
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.data:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifeq 11
2: aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.demand:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
lconst_0
lcmp
ifle 35
3: aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.data:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
istore 1
start local 1 4: aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.reader:Ljdk/incubator/http/internal/websocket/Frame$Reader;
aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.data:Ljava/nio/ByteBuffer;
aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.frameConsumer:Ljdk/incubator/http/internal/websocket/FrameConsumer;
invokevirtual jdk.incubator.http.internal.websocket.Frame$Reader.readFrame:(Ljava/nio/ByteBuffer;Ljdk/incubator/http/internal/websocket/Frame$Consumer;)V
5: aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.data:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
istore 2
start local 2 6: getstatic jdk.incubator.http.internal.websocket.Receiver.$assertionsDisabled:Z
ifne 34
iload 1
iload 2
if_icmpne 34
new java.lang.AssertionError
dup
aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.data:Ljava/nio/ByteBuffer;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 2 end local 1 7: StackMap locals:
StackMap stack: jdk.incubator.http.internal.websocket.FailWebSocketException
astore 1
start local 1 8: aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.handler:Ljdk/incubator/http/internal/websocket/CooperativeHandler;
invokevirtual jdk.incubator.http.internal.websocket.CooperativeHandler.stop:()V
9: aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.messageConsumer:Ljdk/incubator/http/internal/websocket/MessageStreamConsumer;
aload 1
invokeinterface jdk.incubator.http.internal.websocket.MessageStreamConsumer.onError:(Ljava/lang/Exception;)V
end local 1 10: goto 34
11: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.state:I
tableswitch { // 0 - 2
0: 13
1: 20
2: 12
default: 33
}
12: StackMap locals:
StackMap stack:
return
13: StackMap locals:
StackMap stack:
aload 0
iconst_2
putfield jdk.incubator.http.internal.websocket.Receiver.state:I
14: aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.channel:Ljdk/incubator/http/internal/websocket/RawChannel;
aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.event:Ljdk/incubator/http/internal/websocket/RawChannel$RawEvent;
invokeinterface jdk.incubator.http.internal.websocket.RawChannel.registerEvent:(Ljdk/incubator/http/internal/websocket/RawChannel$RawEvent;)V
15: goto 19
StackMap locals:
StackMap stack: java.io.IOException
16: astore 1
start local 1 17: aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.handler:Ljdk/incubator/http/internal/websocket/CooperativeHandler;
invokevirtual jdk.incubator.http.internal.websocket.CooperativeHandler.stop:()V
18: aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.messageConsumer:Ljdk/incubator/http/internal/websocket/MessageStreamConsumer;
aload 1
invokeinterface jdk.incubator.http.internal.websocket.MessageStreamConsumer.onError:(Ljava/lang/Exception;)V
end local 1 19: StackMap locals:
StackMap stack:
return
20: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.channel:Ljdk/incubator/http/internal/websocket/RawChannel;
invokeinterface jdk.incubator.http.internal.websocket.RawChannel.read:()Ljava/nio/ByteBuffer;
putfield jdk.incubator.http.internal.websocket.Receiver.data:Ljava/nio/ByteBuffer;
21: goto 26
StackMap locals:
StackMap stack: java.io.IOException
22: astore 1
start local 1 23: aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.handler:Ljdk/incubator/http/internal/websocket/CooperativeHandler;
invokevirtual jdk.incubator.http.internal.websocket.CooperativeHandler.stop:()V
24: aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.messageConsumer:Ljdk/incubator/http/internal/websocket/MessageStreamConsumer;
aload 1
invokeinterface jdk.incubator.http.internal.websocket.MessageStreamConsumer.onError:(Ljava/lang/Exception;)V
25: return
end local 1 26: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.data:Ljava/nio/ByteBuffer;
ifnonnull 30
27: aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.handler:Ljdk/incubator/http/internal/websocket/CooperativeHandler;
invokevirtual jdk.incubator.http.internal.websocket.CooperativeHandler.stop:()V
28: aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.messageConsumer:Ljdk/incubator/http/internal/websocket/MessageStreamConsumer;
invokeinterface jdk.incubator.http.internal.websocket.MessageStreamConsumer.onComplete:()V
29: return
30: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.data:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifne 34
31: aload 0
iconst_0
putfield jdk.incubator.http.internal.websocket.Receiver.state:I
32: goto 34
33: StackMap locals:
StackMap stack:
new java.lang.InternalError
dup
aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.state:I
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
34: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.internal.websocket.Receiver.handler:Ljdk/incubator/http/internal/websocket/CooperativeHandler;
invokevirtual jdk.incubator.http.internal.websocket.CooperativeHandler.isStopped:()Z
ifeq 1
35: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 this Ljdk/incubator/http/internal/websocket/Receiver;
4 7 1 oldPos I
6 7 2 newPos I
8 10 1 e Ljdk/incubator/http/internal/websocket/FailWebSocketException;
17 19 1 e Ljava/io/IOException;
23 26 1 e Ljava/io/IOException;
Exception table:
from to target type
3 7 7 Class jdk.incubator.http.internal.websocket.FailWebSocketException
13 15 16 Class java.io.IOException
20 21 22 Class java.io.IOException
private static long lambda$1(long, long);
descriptor: (JJ)J
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 2 0: lload 0
lload 2
ladd
lconst_0
lcmp
ifge 1
ldc 9223372036854775807
goto 2
StackMap locals:
StackMap stack:
1: lload 0
lload 2
ladd
StackMap locals:
StackMap stack: long
2: lreturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 p J
0 3 2 i J
}
SourceFile: "Receiver.java"
NestMembers:
jdk.incubator.http.internal.websocket.Receiver$1
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
abstract Consumer = jdk.incubator.http.internal.websocket.Frame$Consumer of jdk.incubator.http.internal.websocket.Frame
final Reader = jdk.incubator.http.internal.websocket.Frame$Reader of jdk.incubator.http.internal.websocket.Frame
public abstract RawEvent = jdk.incubator.http.internal.websocket.RawChannel$RawEvent of jdk.incubator.http.internal.websocket.RawChannel
jdk.incubator.http.internal.websocket.Receiver$1