public class io.vertx.servicediscovery.impl.DefaultServiceDiscoveryBackend implements io.vertx.servicediscovery.spi.ServiceDiscoveryBackend
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.servicediscovery.impl.DefaultServiceDiscoveryBackend
super_class: java.lang.Object
{
private static final java.lang.String MESSAGE_NO_REG_ID;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "No registration id in the record"
private io.vertx.core.shareddata.AsyncMap<java.lang.String, java.lang.String> registry;
descriptor: Lio/vertx/core/shareddata/AsyncMap;
flags: (0x0002) ACC_PRIVATE
Signature: Lio/vertx/core/shareddata/AsyncMap<Ljava/lang/String;Ljava/lang/String;>;
private io.vertx.core.Vertx vertx;
descriptor: Lio/vertx/core/Vertx;
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/servicediscovery/impl/DefaultServiceDiscoveryBackend;
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=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
putfield io.vertx.servicediscovery.impl.DefaultServiceDiscoveryBackend.vertx:Lio/vertx/core/Vertx;
1: aload 1
invokeinterface io.vertx.core.Vertx.isClustered:()Z
ifeq 2
aload 0
invokevirtual io.vertx.servicediscovery.impl.DefaultServiceDiscoveryBackend.useLocalBackend:()Z
ifeq 3
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokeinterface io.vertx.core.Vertx.sharedData:()Lio/vertx/core/shareddata/SharedData;
ldc "service.registry"
invokeinterface io.vertx.core.shareddata.SharedData.getLocalAsyncMap:(Ljava/lang/String;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Future.result:()Ljava/lang/Object;
checkcast io.vertx.core.shareddata.AsyncMap
putfield io.vertx.servicediscovery.impl.DefaultServiceDiscoveryBackend.registry:Lio/vertx/core/shareddata/AsyncMap;
3: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/servicediscovery/impl/DefaultServiceDiscoveryBackend;
0 4 1 vertx Lio/vertx/core/Vertx;
0 4 2 config Lio/vertx/core/json/JsonObject;
MethodParameters:
Name Flags
vertx
config
private boolean useLocalBackend();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: ldc "vertx-service-discovery-backend-local"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnull 3
2: ldc "true"
aload 1
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ireturn
3: StackMap locals: java.lang.String
StackMap stack:
ldc "VERTX-SERVICE-DISCOVERY-BACKEND-LOCAL"
invokestatic java.lang.System.getenv:(Ljava/lang/String;)Ljava/lang/String;
astore 1
4: ldc "true"
aload 1
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/vertx/servicediscovery/impl/DefaultServiceDiscoveryBackend;
1 5 1 property Ljava/lang/String;
public void store(io.vertx.servicediscovery.Record, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.servicediscovery.Record>>);
descriptor: (Lio/vertx/servicediscovery/Record;Lio/vertx/core/Handler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: invokestatic java.util.UUID.randomUUID:()Ljava/util/UUID;
invokevirtual java.util.UUID.toString:()Ljava/lang/String;
astore 3
start local 3 1: aload 1
invokevirtual io.vertx.servicediscovery.Record.getRegistration:()Ljava/lang/String;
ifnull 3
2: new java.lang.IllegalArgumentException
dup
ldc "The record has already been registered"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: java.lang.String
StackMap stack:
aload 1
aload 3
invokevirtual io.vertx.servicediscovery.Record.setRegistration:(Ljava/lang/String;)Lio/vertx/servicediscovery/Record;
pop
4: aload 0
aload 2
aload 3
aload 1
invokedynamic handle(Lio/vertx/core/Handler;Ljava/lang/String;Lio/vertx/servicediscovery/Record;)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/servicediscovery/impl/DefaultServiceDiscoveryBackend.lambda$0(Lio/vertx/core/Handler;Ljava/lang/String;Lio/vertx/servicediscovery/Record;Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokevirtual io.vertx.servicediscovery.impl.DefaultServiceDiscoveryBackend.retrieveRegistry:(Lio/vertx/core/Handler;)V
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/vertx/servicediscovery/impl/DefaultServiceDiscoveryBackend;
0 6 1 record Lio/vertx/servicediscovery/Record;
0 6 2 resultHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/servicediscovery/Record;>;>;
1 6 3 uuid Ljava/lang/String;
Signature: (Lio/vertx/servicediscovery/Record;Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/servicediscovery/Record;>;>;)V
MethodParameters:
Name Flags
record
resultHandler
private synchronized void retrieveRegistry(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.shareddata.AsyncMap<java.lang.String, java.lang.String>>>);
descriptor: (Lio/vertx/core/Handler;)V
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.servicediscovery.impl.DefaultServiceDiscoveryBackend.registry:Lio/vertx/core/shareddata/AsyncMap;
ifnull 3
1: aload 1
aload 0
getfield io.vertx.servicediscovery.impl.DefaultServiceDiscoveryBackend.registry:Lio/vertx/core/shareddata/AsyncMap;
invokestatic io.vertx.core.Future.succeededFuture:(Ljava/lang/Object;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.servicediscovery.impl.DefaultServiceDiscoveryBackend.vertx:Lio/vertx/core/Vertx;
invokeinterface io.vertx.core.Vertx.sharedData:()Lio/vertx/core/shareddata/SharedData;
ldc "service.registry"
aload 0
aload 1
invokedynamic handle(Lio/vertx/servicediscovery/impl/DefaultServiceDiscoveryBackend;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/servicediscovery/impl/DefaultServiceDiscoveryBackend.lambda$2(Lio/vertx/core/Handler;Lio/vertx/core/AsyncResult;)V (7)
(Lio/vertx/core/AsyncResult;)V
invokeinterface io.vertx.core.shareddata.SharedData.getClusterWideMap:(Ljava/lang/String;Lio/vertx/core/Handler;)V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/vertx/servicediscovery/impl/DefaultServiceDiscoveryBackend;
0 5 1 handler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/shareddata/AsyncMap<Ljava/lang/String;Ljava/lang/String;>;>;>;
Signature: (Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/shareddata/AsyncMap<Ljava/lang/String;Ljava/lang/String;>;>;>;)V
MethodParameters:
Name Flags
handler
public void remove(io.vertx.servicediscovery.Record, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.servicediscovery.Record>>);
descriptor: (Lio/vertx/servicediscovery/Record;Lio/vertx/core/Handler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual io.vertx.servicediscovery.Record.getRegistration:()Ljava/lang/String;
ldc "No registration id in the record"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 0
aload 1
invokevirtual io.vertx.servicediscovery.Record.getRegistration:()Ljava/lang/String;
aload 2
invokevirtual io.vertx.servicediscovery.impl.DefaultServiceDiscoveryBackend.remove:(Ljava/lang/String;Lio/vertx/core/Handler;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/servicediscovery/impl/DefaultServiceDiscoveryBackend;
0 3 1 record Lio/vertx/servicediscovery/Record;
0 3 2 resultHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/servicediscovery/Record;>;>;
Signature: (Lio/vertx/servicediscovery/Record;Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/servicediscovery/Record;>;>;)V
MethodParameters:
Name Flags
record
resultHandler
private static <T> io.vertx.core.Future<T> failure(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Lio/vertx/core/Future;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new java.lang.Exception
dup
ldc "Unable to retrieve the registry"
aload 0
invokespecial java.lang.Exception.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
invokestatic io.vertx.core.Future.failedFuture:(Ljava/lang/Throwable;)Lio/vertx/core/Future;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 e Ljava/lang/Throwable;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Throwable;)Lio/vertx/core/Future<TT;>;
MethodParameters:
Name Flags
e
public void remove(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.servicediscovery.Record>>);
descriptor: (Ljava/lang/String;Lio/vertx/core/Handler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc "No registration id in the record"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 0
aload 2
aload 1
invokedynamic handle(Lio/vertx/core/Handler;Ljava/lang/String;)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/servicediscovery/impl/DefaultServiceDiscoveryBackend.lambda$3(Lio/vertx/core/Handler;Ljava/lang/String;Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokevirtual io.vertx.servicediscovery.impl.DefaultServiceDiscoveryBackend.retrieveRegistry:(Lio/vertx/core/Handler;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/servicediscovery/impl/DefaultServiceDiscoveryBackend;
0 3 1 uuid Ljava/lang/String;
0 3 2 resultHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/servicediscovery/Record;>;>;
Signature: (Ljava/lang/String;Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/servicediscovery/Record;>;>;)V
MethodParameters:
Name Flags
uuid
resultHandler
public void update(io.vertx.servicediscovery.Record, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>);
descriptor: (Lio/vertx/servicediscovery/Record;Lio/vertx/core/Handler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual io.vertx.servicediscovery.Record.getRegistration:()Ljava/lang/String;
ldc "No registration id in the record"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 0
aload 2
aload 1
invokedynamic handle(Lio/vertx/core/Handler;Lio/vertx/servicediscovery/Record;)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/servicediscovery/impl/DefaultServiceDiscoveryBackend.lambda$5(Lio/vertx/core/Handler;Lio/vertx/servicediscovery/Record;Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokevirtual io.vertx.servicediscovery.impl.DefaultServiceDiscoveryBackend.retrieveRegistry:(Lio/vertx/core/Handler;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/servicediscovery/impl/DefaultServiceDiscoveryBackend;
0 3 1 record Lio/vertx/servicediscovery/Record;
0 3 2 resultHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;>;
Signature: (Lio/vertx/servicediscovery/Record;Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;>;)V
MethodParameters:
Name Flags
record
resultHandler
public void getRecords(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<io.vertx.servicediscovery.Record>>>);
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
aload 1
invokedynamic handle(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/servicediscovery/impl/DefaultServiceDiscoveryBackend.lambda$7(Lio/vertx/core/Handler;Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokevirtual io.vertx.servicediscovery.impl.DefaultServiceDiscoveryBackend.retrieveRegistry:(Lio/vertx/core/Handler;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/servicediscovery/impl/DefaultServiceDiscoveryBackend;
0 2 1 resultHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/util/List<Lio/vertx/servicediscovery/Record;>;>;>;
Signature: (Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/util/List<Lio/vertx/servicediscovery/Record;>;>;>;)V
MethodParameters:
Name Flags
resultHandler
public void getRecord(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.servicediscovery.Record>>);
descriptor: (Ljava/lang/String;Lio/vertx/core/Handler;)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
aload 2
aload 1
invokedynamic handle(Lio/vertx/core/Handler;Ljava/lang/String;)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/servicediscovery/impl/DefaultServiceDiscoveryBackend.lambda$10(Lio/vertx/core/Handler;Ljava/lang/String;Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokevirtual io.vertx.servicediscovery.impl.DefaultServiceDiscoveryBackend.retrieveRegistry:(Lio/vertx/core/Handler;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/servicediscovery/impl/DefaultServiceDiscoveryBackend;
0 2 1 uuid Ljava/lang/String;
0 2 2 resultHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/servicediscovery/Record;>;>;
Signature: (Ljava/lang/String;Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/servicediscovery/Record;>;>;)V
MethodParameters:
Name Flags
uuid
resultHandler
private static void lambda$0(io.vertx.core.Handler, java.lang.String, io.vertx.servicediscovery.Record, io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/core/Handler;Ljava/lang/String;Lio/vertx/servicediscovery/Record;Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=5, locals=4, args_size=4
start local 3 0: aload 3
invokeinterface io.vertx.core.AsyncResult.failed:()Z
ifeq 3
1: aload 0
aload 3
invokeinterface io.vertx.core.AsyncResult.cause:()Ljava/lang/Throwable;
invokestatic io.vertx.servicediscovery.impl.DefaultServiceDiscoveryBackend.failure:(Ljava/lang/Throwable;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 3
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
checkcast io.vertx.core.shareddata.AsyncMap
aload 1
aload 2
invokevirtual io.vertx.servicediscovery.Record.toJson:()Lio/vertx/core/json/JsonObject;
invokevirtual io.vertx.core.json.JsonObject.encode:()Ljava/lang/String;
aload 0
aload 2
invokedynamic handle(Lio/vertx/core/Handler;Lio/vertx/servicediscovery/Record;)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/servicediscovery/impl/DefaultServiceDiscoveryBackend.lambda$1(Lio/vertx/core/Handler;Lio/vertx/servicediscovery/Record;Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokeinterface io.vertx.core.shareddata.AsyncMap.put:(Ljava/lang/Object;Ljava/lang/Object;Lio/vertx/core/Handler;)V
4: StackMap locals:
StackMap stack:
return
end local 3 LocalVariableTable:
Start End Slot Name Signature
0 5 3 reg Lio/vertx/core/AsyncResult<Lio/vertx/core/shareddata/AsyncMap<Ljava/lang/String;Ljava/lang/String;>;>;
private void lambda$2(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=2, locals=4, args_size=3
start local 0 start local 2 0: ldc Lio/vertx/servicediscovery/impl/DefaultServiceDiscoveryBackend;
dup
astore 3
monitorenter
1: aload 2
invokeinterface io.vertx.core.AsyncResult.failed:()Z
ifeq 4
2: aload 1
aload 2
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
3: goto 6
4: StackMap locals: java.lang.Class
StackMap stack:
aload 0
aload 2
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
checkcast io.vertx.core.shareddata.AsyncMap
putfield io.vertx.servicediscovery.impl.DefaultServiceDiscoveryBackend.registry:Lio/vertx/core/shareddata/AsyncMap;
5: aload 1
aload 0
getfield io.vertx.servicediscovery.impl.DefaultServiceDiscoveryBackend.registry:Lio/vertx/core/shareddata/AsyncMap;
invokestatic io.vertx.core.Future.succeededFuture:(Ljava/lang/Object;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
6: StackMap locals:
StackMap stack:
aload 3
monitorexit
7: goto 10
StackMap locals:
StackMap stack: java.lang.Throwable
8: aload 3
monitorexit
9: athrow
10: StackMap locals:
StackMap stack:
return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lio/vertx/servicediscovery/impl/DefaultServiceDiscoveryBackend;
0 11 2 ar Lio/vertx/core/AsyncResult<Lio/vertx/core/shareddata/AsyncMap<Ljava/lang/String;Ljava/lang/String;>;>;
Exception table:
from to target type
1 7 8 any
8 9 8 any
private static void lambda$3(io.vertx.core.Handler, java.lang.String, io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/core/Handler;Ljava/lang/String;Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=3, args_size=3
start local 2 0: aload 2
invokeinterface io.vertx.core.AsyncResult.failed:()Z
ifeq 3
1: aload 0
aload 2
invokeinterface io.vertx.core.AsyncResult.cause:()Ljava/lang/Throwable;
invokestatic io.vertx.servicediscovery.impl.DefaultServiceDiscoveryBackend.failure:(Ljava/lang/Throwable;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 2
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
checkcast io.vertx.core.shareddata.AsyncMap
aload 1
aload 0
aload 1
invokedynamic handle(Lio/vertx/core/Handler;Ljava/lang/String;)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/servicediscovery/impl/DefaultServiceDiscoveryBackend.lambda$4(Lio/vertx/core/Handler;Ljava/lang/String;Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokeinterface io.vertx.core.shareddata.AsyncMap.remove:(Ljava/lang/Object;Lio/vertx/core/Handler;)V
4: StackMap locals:
StackMap stack:
return
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 5 2 reg Lio/vertx/core/AsyncResult<Lio/vertx/core/shareddata/AsyncMap<Ljava/lang/String;Ljava/lang/String;>;>;
private static void lambda$5(io.vertx.core.Handler, io.vertx.servicediscovery.Record, io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/core/Handler;Lio/vertx/servicediscovery/Record;Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=3, args_size=3
start local 2 0: aload 2
invokeinterface io.vertx.core.AsyncResult.failed:()Z
ifeq 3
1: aload 0
aload 2
invokeinterface io.vertx.core.AsyncResult.cause:()Ljava/lang/Throwable;
invokestatic io.vertx.servicediscovery.impl.DefaultServiceDiscoveryBackend.failure:(Ljava/lang/Throwable;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 2
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
checkcast io.vertx.core.shareddata.AsyncMap
aload 1
invokevirtual io.vertx.servicediscovery.Record.getRegistration:()Ljava/lang/String;
aload 1
invokevirtual io.vertx.servicediscovery.Record.toJson:()Lio/vertx/core/json/JsonObject;
invokevirtual io.vertx.core.json.JsonObject.encode:()Ljava/lang/String;
aload 0
invokedynamic handle(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/servicediscovery/impl/DefaultServiceDiscoveryBackend.lambda$6(Lio/vertx/core/Handler;Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokeinterface io.vertx.core.shareddata.AsyncMap.put:(Ljava/lang/Object;Ljava/lang/Object;Lio/vertx/core/Handler;)V
4: StackMap locals:
StackMap stack:
return
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 5 2 reg Lio/vertx/core/AsyncResult<Lio/vertx/core/shareddata/AsyncMap<Ljava/lang/String;Ljava/lang/String;>;>;
private static void lambda$7(io.vertx.core.Handler, io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/core/Handler;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.failed:()Z
ifeq 3
1: aload 0
aload 1
invokeinterface io.vertx.core.AsyncResult.cause:()Ljava/lang/Throwable;
invokestatic io.vertx.servicediscovery.impl.DefaultServiceDiscoveryBackend.failure:(Ljava/lang/Throwable;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 1
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
checkcast io.vertx.core.shareddata.AsyncMap
aload 0
invokedynamic handle(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/servicediscovery/impl/DefaultServiceDiscoveryBackend.lambda$8(Lio/vertx/core/Handler;Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokeinterface io.vertx.core.shareddata.AsyncMap.entries:(Lio/vertx/core/Handler;)V
4: StackMap locals:
StackMap stack:
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 5 1 reg Lio/vertx/core/AsyncResult<Lio/vertx/core/shareddata/AsyncMap<Ljava/lang/String;Ljava/lang/String;>;>;
private static void lambda$10(io.vertx.core.Handler, java.lang.String, io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/core/Handler;Ljava/lang/String;Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 2 0: aload 2
invokeinterface io.vertx.core.AsyncResult.failed:()Z
ifeq 3
1: aload 0
aload 2
invokeinterface io.vertx.core.AsyncResult.cause:()Ljava/lang/Throwable;
invokestatic io.vertx.servicediscovery.impl.DefaultServiceDiscoveryBackend.failure:(Ljava/lang/Throwable;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 2
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
checkcast io.vertx.core.shareddata.AsyncMap
aload 1
aload 0
invokedynamic handle(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/servicediscovery/impl/DefaultServiceDiscoveryBackend.lambda$11(Lio/vertx/core/Handler;Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokeinterface io.vertx.core.shareddata.AsyncMap.get:(Ljava/lang/Object;Lio/vertx/core/Handler;)V
4: StackMap locals:
StackMap stack:
return
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 5 2 reg Lio/vertx/core/AsyncResult<Lio/vertx/core/shareddata/AsyncMap<Ljava/lang/String;Ljava/lang/String;>;>;
private static void lambda$1(io.vertx.core.Handler, io.vertx.servicediscovery.Record, io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/core/Handler;Lio/vertx/servicediscovery/Record;Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 2 0: aload 2
invokeinterface io.vertx.core.AsyncResult.succeeded:()Z
ifeq 3
1: aload 0
aload 1
invokestatic io.vertx.core.Future.succeededFuture:(Ljava/lang/Object;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
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
4: StackMap locals:
StackMap stack:
return
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 5 2 ar Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;
private static void lambda$4(io.vertx.core.Handler, java.lang.String, io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/core/Handler;Ljava/lang/String;Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=6, locals=3, args_size=3
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;
ifnonnull 4
2: aload 0
new java.lang.StringBuilder
dup
ldc "Record '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "' not found"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic io.vertx.core.Future.failedFuture:(Ljava/lang/String;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
3: goto 9
4: StackMap locals:
StackMap stack:
aload 0
5: new io.vertx.servicediscovery.Record
dup
new io.vertx.core.json.JsonObject
dup
aload 2
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
checkcast java.lang.String
invokespecial io.vertx.core.json.JsonObject.<init>:(Ljava/lang/String;)V
invokespecial io.vertx.servicediscovery.Record.<init>:(Lio/vertx/core/json/JsonObject;)V
6: invokestatic io.vertx.core.Future.succeededFuture:(Ljava/lang/Object;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
7: goto 9
8: StackMap locals:
StackMap stack:
aload 0
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 LocalVariableTable:
Start End Slot Name Signature
0 10 2 ar Lio/vertx/core/AsyncResult<Ljava/lang/String;>;
private static void lambda$6(io.vertx.core.Handler, io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/core/Handler;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
invokestatic io.vertx.core.Future.succeededFuture:()Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
aload 1
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
4: StackMap locals:
StackMap stack:
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 5 1 ar Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;
private static void lambda$8(io.vertx.core.Handler, io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/core/Handler;Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
start local 1 0: aload 1
invokeinterface io.vertx.core.AsyncResult.succeeded:()Z
ifeq 6
1: aload 0
aload 1
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
checkcast java.util.Map
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.stream:()Ljava/util/stream/Stream;
2: invokedynamic apply()Ljava/util/function/Function;
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;
io/vertx/servicediscovery/impl/DefaultServiceDiscoveryBackend.lambda$9(Ljava/lang/String;)Lio/vertx/servicediscovery/Record; (6)
(Ljava/lang/String;)Lio/vertx/servicediscovery/Record;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
3: invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.List
4: invokestatic io.vertx.core.Future.succeededFuture:(Ljava/lang/Object;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
5: goto 7
6: StackMap locals:
StackMap stack:
aload 0
aload 1
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
7: StackMap locals:
StackMap stack:
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 8 1 ar Lio/vertx/core/AsyncResult<Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;>;
private static void lambda$11(io.vertx.core.Handler, io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/core/Handler;Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=6, locals=2, args_size=2
start local 1 0: aload 1
invokeinterface io.vertx.core.AsyncResult.succeeded:()Z
ifeq 6
1: aload 1
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
ifnull 4
2: aload 0
new io.vertx.servicediscovery.Record
dup
new io.vertx.core.json.JsonObject
dup
aload 1
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
checkcast java.lang.String
invokespecial io.vertx.core.json.JsonObject.<init>:(Ljava/lang/String;)V
invokespecial io.vertx.servicediscovery.Record.<init>:(Lio/vertx/core/json/JsonObject;)V
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 7
4: StackMap locals:
StackMap stack:
aload 0
aconst_null
invokestatic io.vertx.core.Future.succeededFuture:(Ljava/lang/Object;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
5: goto 7
6: StackMap locals:
StackMap stack:
aload 0
aload 1
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
7: StackMap locals:
StackMap stack:
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 8 1 ar Lio/vertx/core/AsyncResult<Ljava/lang/String;>;
private static io.vertx.servicediscovery.Record lambda$9(java.lang.String);
descriptor: (Ljava/lang/String;)Lio/vertx/servicediscovery/Record;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: new io.vertx.servicediscovery.Record
dup
new io.vertx.core.json.JsonObject
dup
aload 0
invokespecial io.vertx.core.json.JsonObject.<init>:(Ljava/lang/String;)V
invokespecial io.vertx.servicediscovery.Record.<init>:(Lio/vertx/core/json/JsonObject;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 s Ljava/lang/String;
}
SourceFile: "DefaultServiceDiscoveryBackend.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles