class io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference extends io.vertx.servicediscovery.types.AbstractServiceReference<io.vertx.core.http.HttpClient>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference
super_class: io.vertx.servicediscovery.types.AbstractServiceReference
{
private final io.vertx.servicediscovery.types.HttpLocation location;
descriptor: Lio/vertx/servicediscovery/types/HttpLocation;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.core.json.JsonObject config;
descriptor: Lio/vertx/core/json/JsonObject;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.lang.Object retrieved;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
final io.vertx.servicediscovery.types.impl.HttpEndpointImpl this$0;
descriptor: Lio/vertx/servicediscovery/types/impl/HttpEndpointImpl;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(io.vertx.servicediscovery.types.impl.HttpEndpointImpl, io.vertx.core.Vertx, io.vertx.servicediscovery.ServiceDiscovery, io.vertx.servicediscovery.Record, io.vertx.core.json.JsonObject);
descriptor: (Lio/vertx/servicediscovery/types/impl/HttpEndpointImpl;Lio/vertx/core/Vertx;Lio/vertx/servicediscovery/ServiceDiscovery;Lio/vertx/servicediscovery/Record;Lio/vertx/core/json/JsonObject;)V
flags: (0x0000)
Code:
stack=4, locals=6, args_size=6
start local 0 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 1
putfield io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.this$0:Lio/vertx/servicediscovery/types/impl/HttpEndpointImpl;
1: aload 0
aload 2
aload 3
aload 4
invokespecial io.vertx.servicediscovery.types.AbstractServiceReference.<init>:(Lio/vertx/core/Vertx;Lio/vertx/servicediscovery/ServiceDiscovery;Lio/vertx/servicediscovery/Record;)V
2: aload 0
aload 5
putfield io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.config:Lio/vertx/core/json/JsonObject;
3: aload 0
new io.vertx.servicediscovery.types.HttpLocation
dup
aload 4
invokevirtual io.vertx.servicediscovery.Record.getLocation:()Lio/vertx/core/json/JsonObject;
invokespecial io.vertx.servicediscovery.types.HttpLocation.<init>:(Lio/vertx/core/json/JsonObject;)V
putfield io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.location:Lio/vertx/servicediscovery/types/HttpLocation;
4: return
end local 5 end local 4 end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/vertx/servicediscovery/types/impl/HttpEndpointImpl$HttpEndpointReference;
0 5 2 vertx Lio/vertx/core/Vertx;
0 5 3 discovery Lio/vertx/servicediscovery/ServiceDiscovery;
0 5 4 record Lio/vertx/servicediscovery/Record;
0 5 5 config Lio/vertx/core/json/JsonObject;
MethodParameters:
Name Flags
this$0 final
vertx
discovery
record
config
public io.vertx.core.http.HttpClient retrieve();
descriptor: ()Lio/vertx/core/http/HttpClient;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.config:Lio/vertx/core/json/JsonObject;
ifnull 3
1: new io.vertx.core.http.HttpClientOptions
dup
aload 0
getfield io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.config:Lio/vertx/core/json/JsonObject;
invokespecial io.vertx.core.http.HttpClientOptions.<init>:(Lio/vertx/core/json/JsonObject;)V
astore 1
start local 1 2: goto 4
end local 1 3: StackMap locals:
StackMap stack:
new io.vertx.core.http.HttpClientOptions
dup
invokespecial io.vertx.core.http.HttpClientOptions.<init>:()V
astore 1
start local 1 4: StackMap locals: io.vertx.core.http.HttpClientOptions
StackMap stack:
aload 1
aload 0
getfield io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.location:Lio/vertx/servicediscovery/types/HttpLocation;
invokevirtual io.vertx.servicediscovery.types.HttpLocation.getPort:()I
invokevirtual io.vertx.core.http.HttpClientOptions.setDefaultPort:(I)Lio/vertx/core/http/HttpClientOptions;
aload 0
getfield io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.location:Lio/vertx/servicediscovery/types/HttpLocation;
invokevirtual io.vertx.servicediscovery.types.HttpLocation.getHost:()Ljava/lang/String;
invokevirtual io.vertx.core.http.HttpClientOptions.setDefaultHost:(Ljava/lang/String;)Lio/vertx/core/http/HttpClientOptions;
pop
5: aload 0
getfield io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.location:Lio/vertx/servicediscovery/types/HttpLocation;
invokevirtual io.vertx.servicediscovery.types.HttpLocation.isSsl:()Z
ifeq 7
6: aload 1
iconst_1
invokevirtual io.vertx.core.http.HttpClientOptions.setSsl:(Z)Lio/vertx/core/http/HttpClientOptions;
pop
7: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.vertx:Lio/vertx/core/Vertx;
aload 1
invokeinterface io.vertx.core.Vertx.createHttpClient:(Lio/vertx/core/http/HttpClientOptions;)Lio/vertx/core/http/HttpClient;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/vertx/servicediscovery/types/impl/HttpEndpointImpl$HttpEndpointReference;
2 3 1 options Lio/vertx/core/http/HttpClientOptions;
4 8 1 options Lio/vertx/core/http/HttpClientOptions;
public synchronized void onClose();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.service:Ljava/lang/Object;
checkcast io.vertx.core.http.HttpClient
invokeinterface io.vertx.core.http.HttpClient.close:()Lio/vertx/core/Future;
pop
1: aload 0
aconst_null
putfield io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.retrieved:Ljava/lang/Object;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/servicediscovery/types/impl/HttpEndpointImpl$HttpEndpointReference;
public synchronized <X> X getAs(java.lang.Class<X>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.get:()Ljava/lang/Object;
astore 2
start local 2 1: aload 1
ifnull 2
aload 1
aload 2
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifeq 4
2: StackMap locals: java.lang.Object
StackMap stack:
aload 0
aload 2
putfield io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.retrieved:Ljava/lang/Object;
3: aload 2
areturn
4: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
ldc "WebClient"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 12
5: aload 2
checkcast io.vertx.core.http.HttpClient
invokestatic io.vertx.ext.web.client.WebClient.wrap:(Lio/vertx/core/http/HttpClient;)Lio/vertx/ext/web/client/WebClient;
astore 3
start local 3 6: aload 1
aload 3
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifeq 9
7: aload 0
aload 3
putfield io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.retrieved:Ljava/lang/Object;
8: aload 1
aload 3
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
9: StackMap locals: io.vertx.ext.web.client.WebClient
StackMap stack:
aload 1
aload 3
invokestatic io.vertx.servicediscovery.utils.ClassLoaderUtils.createWithDelegate:(Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object;
astore 4
start local 4 10: aload 0
aload 4
putfield io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.retrieved:Ljava/lang/Object;
11: aload 4
areturn
end local 4 end local 3 12: StackMap locals:
StackMap stack:
aload 1
aload 2
invokestatic io.vertx.servicediscovery.utils.ClassLoaderUtils.createWithDelegate:(Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object;
astore 3
start local 3 13: aload 0
aload 3
putfield io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.retrieved:Ljava/lang/Object;
14: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lio/vertx/servicediscovery/types/impl/HttpEndpointImpl$HttpEndpointReference;
0 15 1 x Ljava/lang/Class<TX;>;
1 15 2 svc Ljava/lang/Object;
6 12 3 client Lio/vertx/ext/web/client/WebClient;
10 12 4 wrapped TX;
13 15 3 client TX;
Signature: <X:Ljava/lang/Object;>(Ljava/lang/Class<TX;>;)TX;
MethodParameters:
Name Flags
x
public synchronized <X> X cachedAs(java.lang.Class<X>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.cached:()Ljava/lang/Object;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: aconst_null
areturn
3: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.retrieved:Ljava/lang/Object;
ifnull 5
aload 1
aload 0
getfield io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.retrieved:Ljava/lang/Object;
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifeq 5
4: aload 1
aload 0
getfield io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.retrieved:Ljava/lang/Object;
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
5: StackMap locals:
StackMap stack:
aload 1
ifnull 6
aload 1
aload 2
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifeq 7
6: StackMap locals:
StackMap stack:
aload 2
areturn
7: StackMap locals:
StackMap stack:
aload 1
aload 2
invokestatic io.vertx.servicediscovery.utils.ClassLoaderUtils.createWithDelegate:(Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/vertx/servicediscovery/types/impl/HttpEndpointImpl$HttpEndpointReference;
0 8 1 x Ljava/lang/Class<TX;>;
1 8 2 svc Ljava/lang/Object;
Signature: <X:Ljava/lang/Object;>(Ljava/lang/Class<TX;>;)TX;
MethodParameters:
Name Flags
x
public synchronized boolean isHolding(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.service:Ljava/lang/Object;
ifnull 1
aload 1
invokevirtual java.lang.Object.hashCode:()I
aload 0
getfield io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.service:Ljava/lang/Object;
checkcast io.vertx.core.http.HttpClient
invokevirtual java.lang.Object.hashCode:()I
if_icmpeq 3
aload 1
aload 0
getfield io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.service:Ljava/lang/Object;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifne 3
1: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.retrieved:Ljava/lang/Object;
ifnull 2
aload 0
getfield io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.retrieved:Ljava/lang/Object;
invokevirtual java.lang.Object.hashCode:()I
aload 1
invokevirtual java.lang.Object.hashCode:()I
if_icmpeq 3
aload 1
aload 0
getfield io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.retrieved:Ljava/lang/Object;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifne 3
2: StackMap locals:
StackMap stack:
iconst_0
ireturn
StackMap locals:
StackMap stack:
3: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/servicediscovery/types/impl/HttpEndpointImpl$HttpEndpointReference;
0 4 1 object Ljava/lang/Object;
MethodParameters:
Name Flags
object
public java.lang.Object retrieve();
descriptor: ()Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference.retrieve:()Lio/vertx/core/http/HttpClient;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Lio/vertx/servicediscovery/types/AbstractServiceReference<Lio/vertx/core/http/HttpClient;>;
SourceFile: "HttpEndpointImpl.java"
NestHost: io.vertx.servicediscovery.types.impl.HttpEndpointImpl
InnerClasses:
private HttpEndpointReference = io.vertx.servicediscovery.types.impl.HttpEndpointImpl$HttpEndpointReference of io.vertx.servicediscovery.types.impl.HttpEndpointImpl