public class io.vertx.config.consul.ConsulConfigStore implements io.vertx.config.spi.ConfigStore
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.config.consul.ConsulConfigStore
super_class: java.lang.Object
{
private final io.vertx.ext.consul.ConsulClient client;
descriptor: Lio/vertx/ext/consul/ConsulClient;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String delimiter;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String prefix;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(io.vertx.core.Vertx, io.vertx.core.json.JsonObject);
descriptor: (Lio/vertx/core/Vertx;Lio/vertx/core/json/JsonObject;)V
flags: (0x0000)
Code:
stack=5, 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
aload 1
new io.vertx.ext.consul.ConsulClientOptions
dup
aload 2
invokespecial io.vertx.ext.consul.ConsulClientOptions.<init>:(Lio/vertx/core/json/JsonObject;)V
invokestatic io.vertx.ext.consul.ConsulClient.create:(Lio/vertx/core/Vertx;Lio/vertx/ext/consul/ConsulClientOptions;)Lio/vertx/ext/consul/ConsulClient;
putfield io.vertx.config.consul.ConsulConfigStore.client:Lio/vertx/ext/consul/ConsulClient;
2: aload 0
aload 2
ldc "delimiter"
ldc "/"
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
putfield io.vertx.config.consul.ConsulConfigStore.delimiter:Ljava/lang/String;
3: aload 0
aload 2
ldc "prefix"
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;)Ljava/lang/String;
aload 0
getfield io.vertx.config.consul.ConsulConfigStore.delimiter:Ljava/lang/String;
invokestatic io.vertx.config.consul.ConsulConfigStore.prefix:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
putfield io.vertx.config.consul.ConsulConfigStore.prefix:Ljava/lang/String;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/vertx/config/consul/ConsulConfigStore;
0 5 1 vertx Lio/vertx/core/Vertx;
0 5 2 configuration Lio/vertx/core/json/JsonObject;
MethodParameters:
Name Flags
vertx
configuration
public void get(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.buffer.Buffer>>);
descriptor: (Lio/vertx/core/Handler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.config.consul.ConsulConfigStore.client:Lio/vertx/ext/consul/ConsulClient;
aload 0
getfield io.vertx.config.consul.ConsulConfigStore.prefix:Ljava/lang/String;
aload 0
aload 1
invokedynamic handle(Lio/vertx/config/consul/ConsulConfigStore;Lio/vertx/core/Handler;)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/config/consul/ConsulConfigStore.lambda$0(Lio/vertx/core/Handler;Lio/vertx/core/AsyncResult;)V (7)
(Lio/vertx/core/AsyncResult;)V
invokeinterface io.vertx.ext.consul.ConsulClient.getValues:(Ljava/lang/String;Lio/vertx/core/Handler;)Lio/vertx/ext/consul/ConsulClient;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/config/consul/ConsulConfigStore;
0 2 1 completionHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/buffer/Buffer;>;>;
Signature: (Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/buffer/Buffer;>;>;)V
MethodParameters:
Name Flags
completionHandler
public void close(io.vertx.core.Handler<java.lang.Void>);
descriptor: (Lio/vertx/core/Handler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.config.consul.ConsulConfigStore.client:Lio/vertx/ext/consul/ConsulClient;
invokeinterface io.vertx.ext.consul.ConsulClient.close:()V
1: aload 1
aconst_null
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/config/consul/ConsulConfigStore;
0 3 1 completionHandler Lio/vertx/core/Handler<Ljava/lang/Void;>;
Signature: (Lio/vertx/core/Handler<Ljava/lang/Void;>;)V
MethodParameters:
Name Flags
completionHandler
private static io.vertx.core.json.JsonObject getTree(io.vertx.ext.consul.KeyValueList, int, java.lang.String);
descriptor: (Lio/vertx/ext/consul/KeyValueList;ILjava/lang/String;)Lio/vertx/core/json/JsonObject;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=11, args_size=3
start local 0 start local 1 start local 2 0: new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
astore 3
start local 3 1: aload 0
invokevirtual io.vertx.ext.consul.KeyValueList.getList:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 20
StackMap locals: io.vertx.ext.consul.KeyValueList int java.lang.String io.vertx.core.json.JsonObject top java.util.Iterator
StackMap stack:
2: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.vertx.ext.consul.KeyValue
astore 4
start local 4 3: aload 4
invokevirtual io.vertx.ext.consul.KeyValue.getKey:()Ljava/lang/String;
aload 2
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 5
4: goto 20
5: StackMap locals: io.vertx.ext.consul.KeyValueList int java.lang.String io.vertx.core.json.JsonObject io.vertx.ext.consul.KeyValue java.util.Iterator
StackMap stack:
aload 3
astore 6
start local 6 6: aload 4
invokevirtual io.vertx.ext.consul.KeyValue.getKey:()Ljava/lang/String;
iload 1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
aload 2
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 7
start local 7 7: iconst_0
istore 8
start local 8 8: goto 19
9: StackMap locals: io.vertx.core.json.JsonObject java.lang.String[] int
StackMap stack:
aload 7
iload 8
aaload
astore 9
start local 9 10: iload 8
aload 7
arraylength
iconst_1
isub
if_icmpne 13
11: aload 6
aload 9
aload 4
invokevirtual io.vertx.ext.consul.KeyValue.getValue:()Ljava/lang/String;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
pop
12: goto 18
13: StackMap locals: java.lang.String
StackMap stack:
aload 6
aload 9
invokevirtual io.vertx.core.json.JsonObject.getJsonObject:(Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
astore 10
start local 10 14: aload 10
ifnonnull 17
15: new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
astore 10
16: aload 6
aload 9
aload 10
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Lio/vertx/core/json/JsonObject;)Lio/vertx/core/json/JsonObject;
pop
17: StackMap locals: io.vertx.core.json.JsonObject
StackMap stack:
aload 10
astore 6
end local 10 end local 9 18: StackMap locals:
StackMap stack:
iinc 8 1
StackMap locals:
StackMap stack:
19: iload 8
aload 7
arraylength
if_icmplt 9
end local 8 end local 7 end local 6 end local 4 20: StackMap locals: io.vertx.ext.consul.KeyValueList int java.lang.String io.vertx.core.json.JsonObject top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
21: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 list Lio/vertx/ext/consul/KeyValueList;
0 22 1 prefix I
0 22 2 delimiter Ljava/lang/String;
1 22 3 tree Lio/vertx/core/json/JsonObject;
3 20 4 keyValue Lio/vertx/ext/consul/KeyValue;
6 20 6 json Lio/vertx/core/json/JsonObject;
7 20 7 arr [Ljava/lang/String;
8 20 8 i I
10 18 9 key Ljava/lang/String;
14 18 10 next Lio/vertx/core/json/JsonObject;
MethodParameters:
Name Flags
list
prefix
delimiter
private static java.lang.String prefix(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ifnull 1
aload 0
invokevirtual java.lang.String.isEmpty:()Z
ifeq 2
1: StackMap locals:
StackMap stack:
ldc ""
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 3
aload 0
goto 4
StackMap locals:
StackMap stack:
3: new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
4: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 prefix Ljava/lang/String;
0 5 1 delimiter Ljava/lang/String;
MethodParameters:
Name Flags
prefix
delimiter
private void lambda$0(io.vertx.core.Handler, io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/core/Handler;Lio/vertx/core/AsyncResult;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 2 0: aload 2
invokeinterface io.vertx.core.AsyncResult.succeeded:()Z
ifeq 8
1: aload 2
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
checkcast io.vertx.ext.consul.KeyValueList
astore 3
start local 3 2: aload 3
invokevirtual io.vertx.ext.consul.KeyValueList.isPresent:()Z
ifeq 6
3: aload 3
aload 0
getfield io.vertx.config.consul.ConsulConfigStore.prefix:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
aload 0
getfield io.vertx.config.consul.ConsulConfigStore.delimiter:Ljava/lang/String;
invokestatic io.vertx.config.consul.ConsulConfigStore.getTree:(Lio/vertx/ext/consul/KeyValueList;ILjava/lang/String;)Lio/vertx/core/json/JsonObject;
astore 4
start local 4 4: aload 1
aload 4
invokevirtual io.vertx.core.json.JsonObject.toString:()Ljava/lang/String;
invokestatic io.vertx.core.buffer.Buffer.buffer:(Ljava/lang/String;)Lio/vertx/core/buffer/Buffer;
invokestatic io.vertx.core.Future.succeededFuture:(Ljava/lang/Object;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
end local 4 5: goto 9
6: StackMap locals: io.vertx.ext.consul.KeyValueList
StackMap stack:
aload 1
ldc "{}"
invokestatic io.vertx.core.buffer.Buffer.buffer:(Ljava/lang/String;)Lio/vertx/core/buffer/Buffer;
invokestatic io.vertx.core.Future.succeededFuture:(Ljava/lang/Object;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
end local 3 7: goto 9
8: StackMap locals:
StackMap stack:
aload 1
aload 2
invokeinterface io.vertx.core.AsyncResult.cause:()Ljava/lang/Throwable;
invokestatic io.vertx.core.Future.failedFuture:(Ljava/lang/Throwable;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
9: StackMap locals:
StackMap stack:
return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/vertx/config/consul/ConsulConfigStore;
0 10 2 kv Lio/vertx/core/AsyncResult<Lio/vertx/ext/consul/KeyValueList;>;
2 7 3 list Lio/vertx/ext/consul/KeyValueList;
4 5 4 tree Lio/vertx/core/json/JsonObject;
}
SourceFile: "ConsulConfigStore.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles