class jdk.internal.net.http.PushGroup$AcceptorImpl<T> implements jdk.internal.net.http.PushGroup$Acceptor<T>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.internal.net.http.PushGroup$AcceptorImpl
super_class: java.lang.Object
{
private final java.util.concurrent.Executor executor;
descriptor: Ljava/util/concurrent/Executor;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile java.net.http.HttpResponse$BodyHandler<T> bodyHandler;
descriptor: Ljava/net/http/HttpResponse$BodyHandler;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
Signature: Ljava/net/http/HttpResponse$BodyHandler<TT;>;
private volatile java.util.concurrent.CompletableFuture<java.net.http.HttpResponse<T>> cf;
descriptor: Ljava/util/concurrent/CompletableFuture;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
Signature: Ljava/util/concurrent/CompletableFuture<Ljava/net/http/HttpResponse<TT;>;>;
void <init>(java.util.concurrent.Executor);
descriptor: (Ljava/util/concurrent/Executor;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield jdk.internal.net.http.PushGroup$AcceptorImpl.executor:Ljava/util/concurrent/Executor;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/PushGroup$AcceptorImpl<TT;>;
0 3 1 executor Ljava/util/concurrent/Executor;
MethodParameters:
Name Flags
executor
java.util.concurrent.CompletableFuture<java.net.http.HttpResponse<T>> accept(java.net.http.HttpResponse$BodyHandler<T>);
descriptor: (Ljava/net/http/HttpResponse$BodyHandler;)Ljava/util/concurrent/CompletableFuture;
flags: (0x0000)
Code:
stack=3, 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.PushGroup$AcceptorImpl.bodyHandler:Ljava/net/http/HttpResponse$BodyHandler;
ifnull 3
2: new java.lang.IllegalStateException
dup
ldc "non-null bodyHandler"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield jdk.internal.net.http.PushGroup$AcceptorImpl.bodyHandler:Ljava/net/http/HttpResponse$BodyHandler;
4: aload 0
new jdk.internal.net.http.common.MinimalFuture
dup
invokespecial jdk.internal.net.http.common.MinimalFuture.<init>:()V
putfield jdk.internal.net.http.PushGroup$AcceptorImpl.cf:Ljava/util/concurrent/CompletableFuture;
5: aload 0
getfield jdk.internal.net.http.PushGroup$AcceptorImpl.cf:Ljava/util/concurrent/CompletableFuture;
invokedynamic accept()Ljava/util/function/BiConsumer;
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;Ljava/lang/Object;)V
jdk/internal/net/http/PushGroup$AcceptorImpl.lambda$0(Ljava/net/http/HttpResponse;Ljava/lang/Throwable;)V (6)
(Ljava/net/http/HttpResponse;Ljava/lang/Throwable;)V
aload 0
getfield jdk.internal.net.http.PushGroup$AcceptorImpl.executor:Ljava/util/concurrent/Executor;
invokevirtual java.util.concurrent.CompletableFuture.whenCompleteAsync:(Ljava/util/function/BiConsumer;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/net/http/PushGroup$AcceptorImpl<TT;>;
0 6 1 bodyHandler Ljava/net/http/HttpResponse$BodyHandler<TT;>;
Signature: (Ljava/net/http/HttpResponse$BodyHandler<TT;>;)Ljava/util/concurrent/CompletableFuture<Ljava/net/http/HttpResponse<TT;>;>;
MethodParameters:
Name Flags
bodyHandler
public java.net.http.HttpResponse$BodyHandler<T> bodyHandler();
descriptor: ()Ljava/net/http/HttpResponse$BodyHandler;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.PushGroup$AcceptorImpl.bodyHandler:Ljava/net/http/HttpResponse$BodyHandler;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/PushGroup$AcceptorImpl<TT;>;
Signature: ()Ljava/net/http/HttpResponse$BodyHandler<TT;>;
public java.util.concurrent.CompletableFuture<java.net.http.HttpResponse<T>> cf();
descriptor: ()Ljava/util/concurrent/CompletableFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.PushGroup$AcceptorImpl.cf:Ljava/util/concurrent/CompletableFuture;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/PushGroup$AcceptorImpl<TT;>;
Signature: ()Ljava/util/concurrent/CompletableFuture<Ljava/net/http/HttpResponse<TT;>;>;
public boolean accepted();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.PushGroup$AcceptorImpl.cf:Ljava/util/concurrent/CompletableFuture;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/net/http/PushGroup$AcceptorImpl<TT;>;
private static void lambda$0(java.net.http.HttpResponse, java.lang.Throwable);
descriptor: (Ljava/net/http/HttpResponse;Ljava/lang/Throwable;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 r Ljava/net/http/HttpResponse<TT;>;
0 1 1 t Ljava/lang/Throwable;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Ljdk/internal/net/http/PushGroup$Acceptor<TT;>;
SourceFile: "PushGroup.java"
NestHost: jdk.internal.net.http.PushGroup
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract BodyHandler = java.net.http.HttpResponse$BodyHandler of java.net.http.HttpResponse
abstract Acceptor = jdk.internal.net.http.PushGroup$Acceptor of jdk.internal.net.http.PushGroup
private AcceptorImpl = jdk.internal.net.http.PushGroup$AcceptorImpl of jdk.internal.net.http.PushGroup