public final class jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter<S extends java.util.concurrent.Flow$Subscriber<? super java.util.List<java.nio.ByteBuffer>>, R> implements java.net.http.HttpResponse$BodySubscriber<R>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter
super_class: java.lang.Object
{
private final java.util.concurrent.CompletableFuture<R> cf;
descriptor: Ljava/util/concurrent/CompletableFuture;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/CompletableFuture<TR;>;
private final S subscriber;
descriptor: Ljava/util/concurrent/Flow$Subscriber;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: TS;
private final java.util.function.Function<? super S, ? extends R> finisher;
descriptor: Ljava/util/function/Function;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/function/Function<-TS;+TR;>;
private volatile java.util.concurrent.Flow$Subscription subscription;
descriptor: Ljava/util/concurrent/Flow$Subscription;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
public void <init>(S, java.util.function.Function<? super S, ? extends R>);
descriptor: (Ljava/util/concurrent/Flow$Subscriber;Ljava/util/function/Function;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, 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.internal.net.http.common.MinimalFuture
dup
invokespecial jdk.internal.net.http.common.MinimalFuture.<init>:()V
putfield jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter.cf:Ljava/util/concurrent/CompletableFuture;
2: aload 0
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.Flow$Subscriber
putfield jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter.subscriber:Ljava/util/concurrent/Flow$Subscriber;
3: aload 0
aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.function.Function
putfield jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter.finisher:Ljava/util/function/Function;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/net/http/ResponseSubscribers$SubscriberAdapter<TS;TR;>;
0 5 1 subscriber TS;
0 5 2 finisher Ljava/util/function/Function<-TS;+TR;>;
Signature: (TS;Ljava/util/function/Function<-TS;+TR;>;)V
MethodParameters:
Name Flags
subscriber
finisher
public void onSubscribe(java.util.concurrent.Flow$Subscription);
descriptor: (Ljava/util/concurrent/Flow$Subscription;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
getfield jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter.subscription:Ljava/util/concurrent/Flow$Subscription;
ifnull 4
2: aload 1
invokeinterface java.util.concurrent.Flow$Subscription.cancel:()V
3: goto 6
4: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter.subscription:Ljava/util/concurrent/Flow$Subscription;
5: aload 0
getfield jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter.subscriber:Ljava/util/concurrent/Flow$Subscriber;
aload 1
invokeinterface java.util.concurrent.Flow$Subscriber.onSubscribe:(Ljava/util/concurrent/Flow$Subscription;)V
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/net/http/ResponseSubscribers$SubscriberAdapter<TS;TR;>;
0 7 1 subscription Ljava/util/concurrent/Flow$Subscription;
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=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
getfield jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter.subscriber:Ljava/util/concurrent/Flow$Subscriber;
aload 1
invokeinterface java.util.concurrent.Flow$Subscriber.onNext:(Ljava/lang/Object;)V
2: goto 6
StackMap locals:
StackMap stack: java.lang.Throwable
3: astore 2
start local 2 4: aload 0
getfield jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter.subscription:Ljava/util/concurrent/Flow$Subscription;
invokeinterface java.util.concurrent.Flow$Subscription.cancel:()V
5: aload 0
aload 2
invokevirtual jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter.onError:(Ljava/lang/Throwable;)V
end local 2 6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/net/http/ResponseSubscribers$SubscriberAdapter<TS;TR;>;
0 7 1 item Ljava/util/List<Ljava/nio/ByteBuffer;>;
4 6 2 throwable Ljava/lang/Throwable;
Exception table:
from to target type
1 2 3 Class java.lang.Throwable
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=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
getfield jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter.subscriber:Ljava/util/concurrent/Flow$Subscriber;
aload 1
invokeinterface java.util.concurrent.Flow$Subscriber.onError:(Ljava/lang/Throwable;)V
2: goto 6
StackMap locals:
StackMap stack: java.lang.Throwable
3: astore 2
4: aload 0
getfield jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter.cf:Ljava/util/concurrent/CompletableFuture;
aload 1
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
5: aload 2
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter.cf:Ljava/util/concurrent/CompletableFuture;
aload 1
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/internal/net/http/ResponseSubscribers$SubscriberAdapter<TS;TR;>;
0 8 1 throwable Ljava/lang/Throwable;
Exception table:
from to target type
1 3 3 any
MethodParameters:
Name Flags
throwable
public void onComplete();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter.subscriber:Ljava/util/concurrent/Flow$Subscriber;
invokeinterface java.util.concurrent.Flow$Subscriber.onComplete:()V
1: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
2: astore 1
3: aload 0
getfield jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter.cf:Ljava/util/concurrent/CompletableFuture;
aload 0
getfield jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter.finisher:Ljava/util/function/Function;
aload 0
getfield jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter.subscriber:Ljava/util/concurrent/Flow$Subscriber;
invokeinterface java.util.function.Function.apply:(Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual java.util.concurrent.CompletableFuture.complete:(Ljava/lang/Object;)Z
pop
4: goto 7
StackMap locals: jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter java.lang.Throwable
StackMap stack: java.lang.Throwable
5: astore 2
start local 2 6: aload 0
getfield jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter.cf:Ljava/util/concurrent/CompletableFuture;
aload 2
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
end local 2 7: StackMap locals:
StackMap stack:
aload 1
athrow
8: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter.cf:Ljava/util/concurrent/CompletableFuture;
aload 0
getfield jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter.finisher:Ljava/util/function/Function;
aload 0
getfield jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter.subscriber:Ljava/util/concurrent/Flow$Subscriber;
invokeinterface java.util.function.Function.apply:(Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual java.util.concurrent.CompletableFuture.complete:(Ljava/lang/Object;)Z
pop
9: goto 12
StackMap locals:
StackMap stack: java.lang.Throwable
10: astore 2
start local 2 11: aload 0
getfield jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter.cf:Ljava/util/concurrent/CompletableFuture;
aload 2
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
end local 2 12: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljdk/internal/net/http/ResponseSubscribers$SubscriberAdapter<TS;TR;>;
6 7 2 throwable Ljava/lang/Throwable;
11 12 2 throwable Ljava/lang/Throwable;
Exception table:
from to target type
0 2 2 any
3 4 5 Class java.lang.Throwable
8 9 10 Class java.lang.Throwable
public java.util.concurrent.CompletionStage<R> getBody();
descriptor: ()Ljava/util/concurrent/CompletionStage;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter.cf:Ljava/util/concurrent/CompletableFuture;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/ResponseSubscribers$SubscriberAdapter<TS;TR;>;
Signature: ()Ljava/util/concurrent/CompletionStage<TR;>;
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.ResponseSubscribers$SubscriberAdapter.onNext:(Ljava/util/List;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: <S::Ljava/util/concurrent/Flow$Subscriber<-Ljava/util/List<Ljava/nio/ByteBuffer;>;>;R:Ljava/lang/Object;>Ljava/lang/Object;Ljava/net/http/HttpResponse$BodySubscriber<TR;>;
SourceFile: "ResponseSubscribers.java"
NestHost: jdk.internal.net.http.ResponseSubscribers
InnerClasses:
public abstract BodySubscriber = java.net.http.HttpResponse$BodySubscriber of java.net.http.HttpResponse
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
public final SubscriberAdapter = jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter of jdk.internal.net.http.ResponseSubscribers