class jdk.incubator.http.Stream$RequestSubscriber extends jdk.incubator.http.RequestProcessors$ProcessorBase implements java.util.concurrent.Flow$Subscriber<java.nio.ByteBuffer>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.incubator.http.Stream$RequestSubscriber
super_class: jdk.incubator.http.RequestProcessors$ProcessorBase
{
private volatile long remainingContentLength;
descriptor: J
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile java.util.concurrent.Flow$Subscription subscription;
descriptor: Ljava/util/concurrent/Flow$Subscription;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
final jdk.incubator.http.Stream this$0;
descriptor: Ljdk/incubator/http/Stream;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
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/Stream;
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.Stream$RequestSubscriber.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(jdk.incubator.http.Stream, long);
descriptor: (Ljdk/incubator/http/Stream;J)V
flags: (0x0000)
Code:
stack=3, locals=4, args_size=3
start local 0 start local 2 0: aload 0
aload 1
putfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
aload 0
invokespecial jdk.incubator.http.RequestProcessors$ProcessorBase.<init>:()V
1: aload 0
lload 2
putfield jdk.incubator.http.Stream$RequestSubscriber.remainingContentLength:J
2: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/Stream$RequestSubscriber;
0 3 2 contentLen J
MethodParameters:
Name Flags
this$0 final
contentLen
public void onSubscribe(java.util.concurrent.Flow$Subscription);
descriptor: (Ljava/util/concurrent/Flow$Subscription;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
ifnull 2
1: new java.lang.IllegalStateException
dup
invokespecial java.lang.IllegalStateException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield jdk.incubator.http.Stream$RequestSubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
3: aload 1
lconst_1
invokeinterface java.util.concurrent.Flow$Subscription.request:(J)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/incubator/http/Stream$RequestSubscriber;
0 5 1 subscription Ljava/util/concurrent/Flow$Subscription;
MethodParameters:
Name Flags
subscription
public void onNext(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.requestBodyCF:Ljava/util/concurrent/CompletableFuture;
invokevirtual java.util.concurrent.CompletableFuture.isDone:()Z
ifeq 11
1: new java.lang.IllegalStateException
dup
invokespecial java.lang.IllegalStateException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
getstatic jdk.incubator.http.Stream$RequestSubscriber.$assertionsDisabled:Z
ifne 3
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.endStreamSent:Z
ifeq 3
new java.lang.AssertionError
dup
ldc "internal error, send data after END_STREAM flag"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
aload 1
invokevirtual jdk.incubator.http.Stream.getDataFrame:(Ljava/nio/ByteBuffer;)Ljdk/incubator/http/internal/frame/DataFrame;
astore 2
start local 2 4: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.remainingContentLength:J
lconst_0
lcmp
ifle 10
5: aload 0
dup
getfield jdk.incubator.http.Stream$RequestSubscriber.remainingContentLength:J
aload 2
invokevirtual jdk.incubator.http.internal.frame.DataFrame.getDataLength:()I
i2l
lsub
putfield jdk.incubator.http.Stream$RequestSubscriber.remainingContentLength:J
6: getstatic jdk.incubator.http.Stream$RequestSubscriber.$assertionsDisabled:Z
ifne 7
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.remainingContentLength:J
lconst_0
lcmp
ifge 7
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
7: StackMap locals: jdk.incubator.http.internal.frame.DataFrame
StackMap stack:
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.remainingContentLength:J
lconst_0
lcmp
ifne 10
8: aload 2
iconst_1
invokevirtual jdk.incubator.http.internal.frame.DataFrame.setFlag:(I)V
9: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
iconst_1
putfield jdk.incubator.http.Stream.endStreamSent:Z
10: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.connection:Ljdk/incubator/http/Http2Connection;
aload 2
invokevirtual jdk.incubator.http.Http2Connection.sendDataFrame:(Ljdk/incubator/http/internal/frame/DataFrame;)V
end local 2 11: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifne 2
12: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
lconst_1
invokeinterface java.util.concurrent.Flow$Subscription.request:(J)V
13: goto 17
StackMap locals:
StackMap stack: java.lang.InterruptedException
14: astore 2
start local 2 15: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
invokeinterface java.util.concurrent.Flow$Subscription.cancel:()V
16: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.requestBodyCF:Ljava/util/concurrent/CompletableFuture;
aload 2
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
end local 2 17: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Ljdk/incubator/http/Stream$RequestSubscriber;
0 18 1 item Ljava/nio/ByteBuffer;
4 11 2 df Ljdk/incubator/http/internal/frame/DataFrame;
15 17 2 ex Ljava/lang/InterruptedException;
Exception table:
from to target type
2 13 14 Class java.lang.InterruptedException
MethodParameters:
Name Flags
item
public void onError(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.requestBodyCF:Ljava/util/concurrent/CompletableFuture;
invokevirtual java.util.concurrent.CompletableFuture.isDone:()Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
invokeinterface java.util.concurrent.Flow$Subscription.cancel:()V
3: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.requestBodyCF:Ljava/util/concurrent/CompletableFuture;
aload 1
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/incubator/http/Stream$RequestSubscriber;
0 5 1 throwable Ljava/lang/Throwable;
MethodParameters:
Name Flags
throwable
public void onComplete();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: getstatic jdk.incubator.http.Stream$RequestSubscriber.$assertionsDisabled:Z
ifne 1
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.endStreamSent:Z
ifne 1
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.remainingContentLength:J
lconst_0
lcmp
iflt 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.endStreamSent:Z
ifne 4
2: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
iconst_1
putfield jdk.incubator.http.Stream.endStreamSent:Z
3: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.connection:Ljdk/incubator/http/Http2Connection;
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
invokevirtual jdk.incubator.http.Stream.getEmptyEndStreamDataFrame:()Ljdk/incubator/http/internal/frame/DataFrame;
invokevirtual jdk.incubator.http.Http2Connection.sendDataFrame:(Ljdk/incubator/http/internal/frame/DataFrame;)V
4: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.requestBodyCF:Ljava/util/concurrent/CompletableFuture;
aconst_null
invokevirtual java.util.concurrent.CompletableFuture.complete:(Ljava/lang/Object;)Z
pop
5: goto 8
StackMap locals:
StackMap stack: java.lang.InterruptedException
6: astore 1
start local 1 7: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.requestBodyCF:Ljava/util/concurrent/CompletableFuture;
aload 1
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
end local 1 8: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/incubator/http/Stream$RequestSubscriber;
7 8 1 ex Ljava/lang/InterruptedException;
Exception table:
from to target type
1 5 6 Class java.lang.InterruptedException
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.nio.ByteBuffer
invokevirtual jdk.incubator.http.Stream$RequestSubscriber.onNext:(Ljava/nio/ByteBuffer;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljdk/incubator/http/RequestProcessors$ProcessorBase;Ljava/util/concurrent/Flow$Subscriber<Ljava/nio/ByteBuffer;>;
SourceFile: "Stream.java"
NestHost: jdk.incubator.http.Stream
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
abstract ProcessorBase = jdk.incubator.http.RequestProcessors$ProcessorBase of jdk.incubator.http.RequestProcessors
RequestSubscriber = jdk.incubator.http.Stream$RequestSubscriber of jdk.incubator.http.Stream