public class io.vertx.ext.web.handler.graphql.VertxBatchLoader<K, V> implements org.dataloader.BatchLoaderWithContext<K, V>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.ext.web.handler.graphql.VertxBatchLoader
super_class: java.lang.Object
{
private final io.vertx.ext.web.handler.graphql.TriConsumer<java.util.List<K>, org.dataloader.BatchLoaderEnvironment, io.vertx.core.Promise<java.util.List<V>>> batchLoader;
descriptor: Lio/vertx/ext/web/handler/graphql/TriConsumer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lio/vertx/ext/web/handler/graphql/TriConsumer<Ljava/util/List<TK;>;Lorg/dataloader/BatchLoaderEnvironment;Lio/vertx/core/Promise<Ljava/util/List<TV;>;>;>;
public void <init>(io.vertx.ext.web.handler.graphql.TriConsumer<java.util.List<K>, org.dataloader.BatchLoaderEnvironment, io.vertx.core.Promise<java.util.List<V>>>);
descriptor: (Lio/vertx/ext/web/handler/graphql/TriConsumer;)V
flags: (0x0001) ACC_PUBLIC
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 io.vertx.ext.web.handler.graphql.VertxBatchLoader.batchLoader:Lio/vertx/ext/web/handler/graphql/TriConsumer;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/ext/web/handler/graphql/VertxBatchLoader<TK;TV;>;
0 3 1 batchLoader Lio/vertx/ext/web/handler/graphql/TriConsumer<Ljava/util/List<TK;>;Lorg/dataloader/BatchLoaderEnvironment;Lio/vertx/core/Promise<Ljava/util/List<TV;>;>;>;
Signature: (Lio/vertx/ext/web/handler/graphql/TriConsumer<Ljava/util/List<TK;>;Lorg/dataloader/BatchLoaderEnvironment;Lio/vertx/core/Promise<Ljava/util/List<TV;>;>;>;)V
MethodParameters:
Name Flags
batchLoader
public java.util.concurrent.CompletionStage<java.util.List<V>> load(java.util.List<K>, org.dataloader.BatchLoaderEnvironment);
descriptor: (Ljava/util/List;Lorg/dataloader/BatchLoaderEnvironment;)Ljava/util/concurrent/CompletionStage;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: new java.util.concurrent.CompletableFuture
dup
invokespecial java.util.concurrent.CompletableFuture.<init>:()V
astore 3
start local 3 1: invokestatic io.vertx.core.Promise.promise:()Lio/vertx/core/Promise;
astore 4
start local 4 2: aload 4
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
aload 3
invokedynamic handle(Ljava/util/concurrent/CompletableFuture;)Lio/vertx/core/Handler;
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;)V
io/vertx/ext/web/handler/graphql/VertxBatchLoader.lambda$0(Ljava/util/concurrent/CompletableFuture;Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokeinterface io.vertx.core.Future.setHandler:(Lio/vertx/core/Handler;)Lio/vertx/core/Future;
pop
3: aload 0
getfield io.vertx.ext.web.handler.graphql.VertxBatchLoader.batchLoader:Lio/vertx/ext/web/handler/graphql/TriConsumer;
aload 1
aload 2
aload 4
invokeinterface io.vertx.ext.web.handler.graphql.TriConsumer.accept:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
4: aload 3
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/vertx/ext/web/handler/graphql/VertxBatchLoader<TK;TV;>;
0 5 1 keys Ljava/util/List<TK;>;
0 5 2 environment Lorg/dataloader/BatchLoaderEnvironment;
1 5 3 cf Ljava/util/concurrent/CompletableFuture<Ljava/util/List<TV;>;>;
2 5 4 promise Lio/vertx/core/Promise<Ljava/util/List<TV;>;>;
Signature: (Ljava/util/List<TK;>;Lorg/dataloader/BatchLoaderEnvironment;)Ljava/util/concurrent/CompletionStage<Ljava/util/List<TV;>;>;
MethodParameters:
Name Flags
keys
environment
private static void lambda$0(java.util.concurrent.CompletableFuture, io.vertx.core.AsyncResult);
descriptor: (Ljava/util/concurrent/CompletableFuture;Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
invokeinterface io.vertx.core.AsyncResult.succeeded:()Z
ifeq 3
1: aload 0
aload 1
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
checkcast java.util.List
invokevirtual java.util.concurrent.CompletableFuture.complete:(Ljava/lang/Object;)Z
pop
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
aload 1
invokeinterface io.vertx.core.AsyncResult.cause:()Ljava/lang/Throwable;
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
4: StackMap locals:
StackMap stack:
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 5 1 ar Lio/vertx/core/AsyncResult<Ljava/util/List<TV;>;>;
}
Signature: <K:Ljava/lang/Object;V:Ljava/lang/Object;>Ljava/lang/Object;Lorg/dataloader/BatchLoaderWithContext<TK;TV;>;
SourceFile: "VertxBatchLoader.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles