public class io.vertx.config.zookeeper.ZookeeperConfigStore implements io.vertx.config.spi.ConfigStore
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.config.zookeeper.ZookeeperConfigStore
super_class: java.lang.Object
{
private final org.apache.curator.framework.CuratorFramework client;
descriptor: Lorg/apache/curator/framework/CuratorFramework;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String path;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.core.Vertx vertx;
descriptor: Lio/vertx/core/Vertx;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(io.vertx.core.Vertx, io.vertx.core.json.JsonObject);
descriptor: (Lio/vertx/core/Vertx;Lio/vertx/core/json/JsonObject;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 2
ldc "connection"
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 2: aload 0
aload 2
ldc "path"
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
putfield io.vertx.config.zookeeper.ZookeeperConfigStore.path:Ljava/lang/String;
3: aload 0
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.vertx.core.Vertx
putfield io.vertx.config.zookeeper.ZookeeperConfigStore.vertx:Lio/vertx/core/Vertx;
4: aload 2
ldc "maxRetries"
iconst_3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual io.vertx.core.json.JsonObject.getInteger:(Ljava/lang/String;Ljava/lang/Integer;)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
istore 4
start local 4 5: aload 2
ldc "baseSleepTimeBetweenRetries"
sipush 1000
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual io.vertx.core.json.JsonObject.getInteger:(Ljava/lang/String;Ljava/lang/Integer;)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
istore 5
start local 5 6: aload 0
aload 3
7: new org.apache.curator.retry.ExponentialBackoffRetry
dup
iload 5
iload 4
invokespecial org.apache.curator.retry.ExponentialBackoffRetry.<init>:(II)V
8: invokestatic org.apache.curator.framework.CuratorFrameworkFactory.newClient:(Ljava/lang/String;Lorg/apache/curator/RetryPolicy;)Lorg/apache/curator/framework/CuratorFramework;
putfield io.vertx.config.zookeeper.ZookeeperConfigStore.client:Lorg/apache/curator/framework/CuratorFramework;
9: aload 0
getfield io.vertx.config.zookeeper.ZookeeperConfigStore.client:Lorg/apache/curator/framework/CuratorFramework;
invokeinterface org.apache.curator.framework.CuratorFramework.start:()V
10: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lio/vertx/config/zookeeper/ZookeeperConfigStore;
0 11 1 vertx Lio/vertx/core/Vertx;
0 11 2 configuration Lio/vertx/core/json/JsonObject;
2 11 3 connection Ljava/lang/String;
5 11 4 maxRetries I
6 11 5 baseGraceBetweenRetries I
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=5, locals=3, args_size=2
start local 0 start local 1 0: invokestatic io.vertx.core.Vertx.currentContext:()Lio/vertx/core/Context;
astore 2
start local 2 1: aload 0
getfield io.vertx.config.zookeeper.ZookeeperConfigStore.vertx:Lio/vertx/core/Vertx;
2: aload 0
invokedynamic handle(Lio/vertx/config/zookeeper/ZookeeperConfigStore;)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/zookeeper/ZookeeperConfigStore.lambda$0(Lio/vertx/core/Promise;)V (7)
(Lio/vertx/core/Promise;)V
3: aload 0
aload 1
aload 2
invokedynamic handle(Lio/vertx/config/zookeeper/ZookeeperConfigStore;Lio/vertx/core/Handler;Lio/vertx/core/Context;)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/zookeeper/ZookeeperConfigStore.lambda$1(Lio/vertx/core/Handler;Lio/vertx/core/Context;Lio/vertx/core/AsyncResult;)V (7)
(Lio/vertx/core/AsyncResult;)V
4: invokeinterface io.vertx.core.Vertx.executeBlocking:(Lio/vertx/core/Handler;Lio/vertx/core/Handler;)V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/vertx/config/zookeeper/ZookeeperConfigStore;
0 6 1 completionHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/buffer/Buffer;>;>;
1 6 2 context Lio/vertx/core/Context;
Signature: (Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/buffer/Buffer;>;>;)V
MethodParameters:
Name Flags
completionHandler
private void retrieve(org.apache.curator.framework.api.CuratorEvent, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.buffer.Buffer>>);
descriptor: (Lorg/apache/curator/framework/api/CuratorEvent;Lio/vertx/core/Handler;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokeinterface org.apache.curator.framework.api.CuratorEvent.getResultCode:()I
invokestatic org.apache.zookeeper.KeeperException$Code.get:(I)Lorg/apache/zookeeper/KeeperException$Code;
astore 3
start local 3 1: aload 3
getstatic org.apache.zookeeper.KeeperException$Code.OK:Lorg/apache/zookeeper/KeeperException$Code;
if_acmpne 4
2: aload 2
aload 1
invokeinterface org.apache.curator.framework.api.CuratorEvent.getData:()[B
invokestatic io.vertx.core.buffer.Buffer.buffer:([B)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
3: goto 8
StackMap locals: org.apache.zookeeper.KeeperException$Code
StackMap stack:
4: aload 3
getstatic org.apache.zookeeper.KeeperException$Code.NONODE:Lorg/apache/zookeeper/KeeperException$Code;
if_acmpne 7
5: aload 2
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
6: goto 8
7: StackMap locals:
StackMap stack:
aload 2
aload 3
aload 0
getfield io.vertx.config.zookeeper.ZookeeperConfigStore.path:Ljava/lang/String;
invokestatic org.apache.zookeeper.KeeperException.create:(Lorg/apache/zookeeper/KeeperException$Code;Ljava/lang/String;)Lorg/apache/zookeeper/KeeperException;
invokestatic io.vertx.core.Future.failedFuture:(Ljava/lang/Throwable;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
8: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/vertx/config/zookeeper/ZookeeperConfigStore;
0 9 1 event Lorg/apache/curator/framework/api/CuratorEvent;
0 9 2 completionHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/buffer/Buffer;>;>;
1 9 3 code Lorg/apache/zookeeper/KeeperException$Code;
Signature: (Lorg/apache/curator/framework/api/CuratorEvent;Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/buffer/Buffer;>;>;)V
MethodParameters:
Name Flags
event
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.zookeeper.ZookeeperConfigStore.client:Lorg/apache/curator/framework/CuratorFramework;
invokeinterface org.apache.curator.framework.CuratorFramework.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/zookeeper/ZookeeperConfigStore;
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 void lambda$0(io.vertx.core.Promise);
descriptor: (Lio/vertx/core/Promise;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.config.zookeeper.ZookeeperConfigStore.client:Lorg/apache/curator/framework/CuratorFramework;
invokeinterface org.apache.curator.framework.CuratorFramework.blockUntilConnected:()V
1: aload 1
invokeinterface io.vertx.core.Promise.complete:()V
2: goto 5
StackMap locals:
StackMap stack: java.lang.InterruptedException
3: astore 2
start local 2 4: aload 1
aload 2
invokeinterface io.vertx.core.Promise.fail:(Ljava/lang/Throwable;)V
end local 2 5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/vertx/config/zookeeper/ZookeeperConfigStore;
0 6 1 future Lio/vertx/core/Promise<Ljava/lang/Object;>;
4 5 2 e Ljava/lang/InterruptedException;
Exception table:
from to target type
0 2 3 Class java.lang.InterruptedException
private void lambda$1(io.vertx.core.Handler, io.vertx.core.Context, io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/core/Handler;Lio/vertx/core/Context;Lio/vertx/core/AsyncResult;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 3 0: aload 3
invokeinterface io.vertx.core.AsyncResult.failed:()Z
ifeq 3
1: aload 1
aload 3
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
2: goto 10
3: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.config.zookeeper.ZookeeperConfigStore.client:Lorg/apache/curator/framework/CuratorFramework;
invokeinterface org.apache.curator.framework.CuratorFramework.getData:()Lorg/apache/curator/framework/api/GetDataBuilder;
4: aload 0
aload 2
aload 1
invokedynamic processResult(Lio/vertx/config/zookeeper/ZookeeperConfigStore;Lio/vertx/core/Context;Lio/vertx/core/Handler;)Lorg/apache/curator/framework/api/BackgroundCallback;
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:
(Lorg/apache/curator/framework/CuratorFramework;Lorg/apache/curator/framework/api/CuratorEvent;)V
io/vertx/config/zookeeper/ZookeeperConfigStore.lambda$2(Lio/vertx/core/Context;Lio/vertx/core/Handler;Lorg/apache/curator/framework/CuratorFramework;Lorg/apache/curator/framework/api/CuratorEvent;)V (7)
(Lorg/apache/curator/framework/CuratorFramework;Lorg/apache/curator/framework/api/CuratorEvent;)V
invokeinterface org.apache.curator.framework.api.GetDataBuilder.inBackground:(Lorg/apache/curator/framework/api/BackgroundCallback;)Ljava/lang/Object;
checkcast org.apache.curator.framework.api.ErrorListenerPathable
5: aload 2
aload 1
invokedynamic unhandledError(Lio/vertx/core/Context;Lio/vertx/core/Handler;)Lorg/apache/curator/framework/api/UnhandledErrorListener;
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/String;Ljava/lang/Throwable;)V
io/vertx/config/zookeeper/ZookeeperConfigStore.lambda$4(Lio/vertx/core/Context;Lio/vertx/core/Handler;Ljava/lang/String;Ljava/lang/Throwable;)V (6)
(Ljava/lang/String;Ljava/lang/Throwable;)V
invokeinterface org.apache.curator.framework.api.ErrorListenerPathable.withUnhandledErrorListener:(Lorg/apache/curator/framework/api/UnhandledErrorListener;)Lorg/apache/curator/framework/api/Pathable;
6: aload 0
getfield io.vertx.config.zookeeper.ZookeeperConfigStore.path:Ljava/lang/String;
invokeinterface org.apache.curator.framework.api.Pathable.forPath:(Ljava/lang/String;)Ljava/lang/Object;
pop
7: goto 10
StackMap locals:
StackMap stack: java.lang.Exception
8: astore 4
start local 4 9: aload 1
aload 4
invokestatic io.vertx.core.Future.failedFuture:(Ljava/lang/Throwable;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
end local 4 10: StackMap locals:
StackMap stack:
return
end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lio/vertx/config/zookeeper/ZookeeperConfigStore;
0 11 3 v Lio/vertx/core/AsyncResult<Ljava/lang/Object;>;
9 10 4 e Ljava/lang/Exception;
Exception table:
from to target type
3 7 8 Class java.lang.Exception
private void lambda$2(io.vertx.core.Context, io.vertx.core.Handler, org.apache.curator.framework.CuratorFramework, org.apache.curator.framework.api.CuratorEvent);
descriptor: (Lio/vertx/core/Context;Lio/vertx/core/Handler;Lorg/apache/curator/framework/CuratorFramework;Lorg/apache/curator/framework/api/CuratorEvent;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=5, args_size=5
start local 0 start local 3 start local 4 0: aload 1
ifnull 3
1: aload 1
aload 0
aload 4
aload 2
invokedynamic handle(Lio/vertx/config/zookeeper/ZookeeperConfigStore;Lorg/apache/curator/framework/api/CuratorEvent;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/zookeeper/ZookeeperConfigStore.lambda$3(Lorg/apache/curator/framework/api/CuratorEvent;Lio/vertx/core/Handler;Ljava/lang/Void;)V (7)
(Ljava/lang/Void;)V
invokeinterface io.vertx.core.Context.runOnContext:(Lio/vertx/core/Handler;)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
aload 4
aload 2
invokevirtual io.vertx.config.zookeeper.ZookeeperConfigStore.retrieve:(Lorg/apache/curator/framework/api/CuratorEvent;Lio/vertx/core/Handler;)V
4: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/vertx/config/zookeeper/ZookeeperConfigStore;
0 5 3 client Lorg/apache/curator/framework/CuratorFramework;
0 5 4 event Lorg/apache/curator/framework/api/CuratorEvent;
Exceptions:
throws java.lang.Exception
private static void lambda$4(io.vertx.core.Context, io.vertx.core.Handler, java.lang.String, java.lang.Throwable);
descriptor: (Lio/vertx/core/Context;Lio/vertx/core/Handler;Ljava/lang/String;Ljava/lang/Throwable;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=5, args_size=4
start local 2 start local 3 0: new java.lang.Exception
dup
aload 2
aload 3
invokespecial java.lang.Exception.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
astore 4
start local 4 1: aload 0
ifnull 4
2: aload 0
aload 1
aload 4
invokedynamic handle(Lio/vertx/core/Handler;Ljava/lang/Exception;)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/zookeeper/ZookeeperConfigStore.lambda$5(Lio/vertx/core/Handler;Ljava/lang/Exception;Ljava/lang/Void;)V (6)
(Ljava/lang/Void;)V
invokeinterface io.vertx.core.Context.runOnContext:(Lio/vertx/core/Handler;)V
3: goto 5
4: StackMap locals: java.lang.Exception
StackMap stack:
aload 1
aload 4
invokestatic io.vertx.core.Future.failedFuture:(Ljava/lang/Throwable;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
end local 4 5: StackMap locals:
StackMap stack:
return
end local 3 end local 2 LocalVariableTable:
Start End Slot Name Signature
0 6 2 message Ljava/lang/String;
0 6 3 e Ljava/lang/Throwable;
1 5 4 failure Ljava/lang/Exception;
private void lambda$3(org.apache.curator.framework.api.CuratorEvent, io.vertx.core.Handler, java.lang.Void);
descriptor: (Lorg/apache/curator/framework/api/CuratorEvent;Lio/vertx/core/Handler;Ljava/lang/Void;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 3 0: aload 0
aload 1
aload 2
invokevirtual io.vertx.config.zookeeper.ZookeeperConfigStore.retrieve:(Lorg/apache/curator/framework/api/CuratorEvent;Lio/vertx/core/Handler;)V
return
end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/config/zookeeper/ZookeeperConfigStore;
0 1 3 x Ljava/lang/Void;
private static void lambda$5(io.vertx.core.Handler, java.lang.Exception, java.lang.Void);
descriptor: (Lio/vertx/core/Handler;Ljava/lang/Exception;Ljava/lang/Void;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 2 0: aload 0
aload 1
invokestatic io.vertx.core.Future.failedFuture:(Ljava/lang/Throwable;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
return
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 1 2 x Ljava/lang/Void;
}
SourceFile: "ZookeeperConfigStore.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final Code = org.apache.zookeeper.KeeperException$Code of org.apache.zookeeper.KeeperException