public class io.vertx.core.net.impl.NetClientImpl implements io.vertx.core.spi.metrics.MetricsProvider, io.vertx.core.net.NetClient, io.vertx.core.Closeable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.core.net.impl.NetClientImpl
super_class: java.lang.Object
{
private static final io.vertx.core.impl.logging.Logger log;
descriptor: Lio/vertx/core/impl/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
protected final int idleTimeout;
descriptor: I
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
private final java.util.concurrent.TimeUnit idleTimeoutUnit;
descriptor: Ljava/util/concurrent/TimeUnit;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
protected final boolean logEnabled;
descriptor: Z
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
private final io.vertx.core.impl.VertxInternal vertx;
descriptor: Lio/vertx/core/impl/VertxInternal;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.core.net.NetClientOptions options;
descriptor: Lio/vertx/core/net/NetClientOptions;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.core.net.impl.SSLHelper sslHelper;
descriptor: Lio/vertx/core/net/impl/SSLHelper;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.netty.channel.group.ChannelGroup channelGroup;
descriptor: Lio/netty/channel/group/ChannelGroup;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.core.spi.metrics.TCPMetrics metrics;
descriptor: Lio/vertx/core/spi/metrics/TCPMetrics;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.core.impl.CloseFuture closeFuture;
descriptor: Lio/vertx/core/impl/CloseFuture;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lio/vertx/core/net/impl/NetClientImpl;
invokestatic io.vertx.core.impl.logging.LoggerFactory.getLogger:(Ljava/lang/Class;)Lio/vertx/core/impl/logging/Logger;
putstatic io.vertx.core.net.impl.NetClientImpl.log:Lio/vertx/core/impl/logging/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(io.vertx.core.impl.VertxInternal, io.vertx.core.net.NetClientOptions, io.vertx.core.impl.CloseFuture);
descriptor: (Lio/vertx/core/impl/VertxInternal;Lio/vertx/core/net/NetClientOptions;Lio/vertx/core/impl/CloseFuture;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield io.vertx.core.net.impl.NetClientImpl.vertx:Lio/vertx/core/impl/VertxInternal;
2: aload 0
new io.netty.channel.group.DefaultChannelGroup
dup
aload 1
invokeinterface io.vertx.core.impl.VertxInternal.getAcceptorEventLoopGroup:()Lio/netty/channel/EventLoopGroup;
invokeinterface io.netty.channel.EventLoopGroup.next:()Lio/netty/channel/EventLoop;
invokespecial io.netty.channel.group.DefaultChannelGroup.<init>:(Lio/netty/util/concurrent/EventExecutor;)V
putfield io.vertx.core.net.impl.NetClientImpl.channelGroup:Lio/netty/channel/group/ChannelGroup;
3: aload 0
new io.vertx.core.net.NetClientOptions
dup
aload 2
invokespecial io.vertx.core.net.NetClientOptions.<init>:(Lio/vertx/core/net/NetClientOptions;)V
putfield io.vertx.core.net.impl.NetClientImpl.options:Lio/vertx/core/net/NetClientOptions;
4: aload 0
new io.vertx.core.net.impl.SSLHelper
dup
aload 2
aload 2
invokevirtual io.vertx.core.net.NetClientOptions.getKeyCertOptions:()Lio/vertx/core/net/KeyCertOptions;
aload 2
invokevirtual io.vertx.core.net.NetClientOptions.getTrustOptions:()Lio/vertx/core/net/TrustOptions;
invokespecial io.vertx.core.net.impl.SSLHelper.<init>:(Lio/vertx/core/net/NetClientOptions;Lio/vertx/core/net/KeyCertOptions;Lio/vertx/core/net/TrustOptions;)V
putfield io.vertx.core.net.impl.NetClientImpl.sslHelper:Lio/vertx/core/net/impl/SSLHelper;
5: aload 0
aload 1
invokeinterface io.vertx.core.impl.VertxInternal.metricsSPI:()Lio/vertx/core/spi/metrics/VertxMetrics;
ifnull 6
aload 1
invokeinterface io.vertx.core.impl.VertxInternal.metricsSPI:()Lio/vertx/core/spi/metrics/VertxMetrics;
aload 2
invokeinterface io.vertx.core.spi.metrics.VertxMetrics.createNetClientMetrics:(Lio/vertx/core/net/NetClientOptions;)Lio/vertx/core/spi/metrics/TCPMetrics;
goto 7
StackMap locals: io.vertx.core.net.impl.NetClientImpl io.vertx.core.impl.VertxInternal io.vertx.core.net.NetClientOptions io.vertx.core.impl.CloseFuture
StackMap stack: io.vertx.core.net.impl.NetClientImpl
6: aconst_null
StackMap locals: io.vertx.core.net.impl.NetClientImpl io.vertx.core.impl.VertxInternal io.vertx.core.net.NetClientOptions io.vertx.core.impl.CloseFuture
StackMap stack: io.vertx.core.net.impl.NetClientImpl io.vertx.core.spi.metrics.TCPMetrics
7: putfield io.vertx.core.net.impl.NetClientImpl.metrics:Lio/vertx/core/spi/metrics/TCPMetrics;
8: aload 0
aload 2
invokevirtual io.vertx.core.net.NetClientOptions.getLogActivity:()Z
putfield io.vertx.core.net.impl.NetClientImpl.logEnabled:Z
9: aload 0
aload 2
invokevirtual io.vertx.core.net.NetClientOptions.getIdleTimeout:()I
putfield io.vertx.core.net.impl.NetClientImpl.idleTimeout:I
10: aload 0
aload 2
invokevirtual io.vertx.core.net.NetClientOptions.getIdleTimeoutUnit:()Ljava/util/concurrent/TimeUnit;
putfield io.vertx.core.net.impl.NetClientImpl.idleTimeoutUnit:Ljava/util/concurrent/TimeUnit;
11: aload 0
aload 3
putfield io.vertx.core.net.impl.NetClientImpl.closeFuture:Lio/vertx/core/impl/CloseFuture;
12: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lio/vertx/core/net/impl/NetClientImpl;
0 13 1 vertx Lio/vertx/core/impl/VertxInternal;
0 13 2 options Lio/vertx/core/net/NetClientOptions;
0 13 3 closeFuture Lio/vertx/core/impl/CloseFuture;
MethodParameters:
Name Flags
vertx
options
closeFuture
protected void initChannel(io.netty.channel.ChannelPipeline);
descriptor: (Lio/netty/channel/ChannelPipeline;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=11, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.net.impl.NetClientImpl.logEnabled:Z
ifeq 2
1: aload 1
ldc "logging"
new io.netty.handler.logging.LoggingHandler
dup
invokespecial io.netty.handler.logging.LoggingHandler.<init>:()V
invokeinterface io.netty.channel.ChannelPipeline.addLast:(Ljava/lang/String;Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
2: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.net.impl.NetClientImpl.sslHelper:Lio/vertx/core/net/impl/SSLHelper;
invokevirtual io.vertx.core.net.impl.SSLHelper.isSSL:()Z
ifeq 4
3: aload 1
ldc "chunkedWriter"
new io.netty.handler.stream.ChunkedWriteHandler
dup
invokespecial io.netty.handler.stream.ChunkedWriteHandler.<init>:()V
invokeinterface io.netty.channel.ChannelPipeline.addLast:(Ljava/lang/String;Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
4: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.net.impl.NetClientImpl.idleTimeout:I
ifle 6
5: aload 1
ldc "idle"
new io.netty.handler.timeout.IdleStateHandler
dup
lconst_0
lconst_0
aload 0
getfield io.vertx.core.net.impl.NetClientImpl.idleTimeout:I
i2l
aload 0
getfield io.vertx.core.net.impl.NetClientImpl.idleTimeoutUnit:Ljava/util/concurrent/TimeUnit;
invokespecial io.netty.handler.timeout.IdleStateHandler.<init>:(JJJLjava/util/concurrent/TimeUnit;)V
invokeinterface io.netty.channel.ChannelPipeline.addLast:(Ljava/lang/String;Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/vertx/core/net/impl/NetClientImpl;
0 7 1 pipeline Lio/netty/channel/ChannelPipeline;
MethodParameters:
Name Flags
pipeline
public io.vertx.core.Future<io.vertx.core.net.NetSocket> connect(int, java.lang.String);
descriptor: (ILjava/lang/String;)Lio/vertx/core/Future;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
aload 2
aconst_null
invokevirtual io.vertx.core.net.impl.NetClientImpl.connect:(ILjava/lang/String;Ljava/lang/String;)Lio/vertx/core/Future;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/net/impl/NetClientImpl;
0 1 1 port I
0 1 2 host Ljava/lang/String;
Signature: (ILjava/lang/String;)Lio/vertx/core/Future<Lio/vertx/core/net/NetSocket;>;
MethodParameters:
Name Flags
port
host
public io.vertx.core.Future<io.vertx.core.net.NetSocket> connect(int, java.lang.String, java.lang.String);
descriptor: (ILjava/lang/String;Ljava/lang/String;)Lio/vertx/core/Future;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
iload 1
aload 2
invokestatic io.vertx.core.net.SocketAddress.inetSocketAddress:(ILjava/lang/String;)Lio/vertx/core/net/SocketAddress;
aload 3
invokevirtual io.vertx.core.net.impl.NetClientImpl.connect:(Lio/vertx/core/net/SocketAddress;Ljava/lang/String;)Lio/vertx/core/Future;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/net/impl/NetClientImpl;
0 1 1 port I
0 1 2 host Ljava/lang/String;
0 1 3 serverName Ljava/lang/String;
Signature: (ILjava/lang/String;Ljava/lang/String;)Lio/vertx/core/Future<Lio/vertx/core/net/NetSocket;>;
MethodParameters:
Name Flags
port
host
serverName
public io.vertx.core.Future<io.vertx.core.net.NetSocket> connect(io.vertx.core.net.SocketAddress);
descriptor: (Lio/vertx/core/net/SocketAddress;)Lio/vertx/core/Future;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aconst_null
invokevirtual io.vertx.core.net.impl.NetClientImpl.connect:(Lio/vertx/core/net/SocketAddress;Ljava/lang/String;)Lio/vertx/core/Future;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/net/impl/NetClientImpl;
0 1 1 remoteAddress Lio/vertx/core/net/SocketAddress;
Signature: (Lio/vertx/core/net/SocketAddress;)Lio/vertx/core/Future<Lio/vertx/core/net/NetSocket;>;
MethodParameters:
Name Flags
remoteAddress
public io.vertx.core.Future<io.vertx.core.net.NetSocket> connect(io.vertx.core.net.SocketAddress, java.lang.String);
descriptor: (Lio/vertx/core/net/SocketAddress;Ljava/lang/String;)Lio/vertx/core/Future;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.vertx.core.net.impl.NetClientImpl.vertx:Lio/vertx/core/impl/VertxInternal;
invokeinterface io.vertx.core.impl.VertxInternal.getOrCreateContext:()Lio/vertx/core/impl/ContextInternal;
astore 3
start local 3 1: aload 3
invokeinterface io.vertx.core.impl.ContextInternal.promise:()Lio/vertx/core/impl/future/PromiseInternal;
astore 4
start local 4 2: aload 0
aload 1
aload 2
aload 4
aload 3
invokevirtual io.vertx.core.net.impl.NetClientImpl.doConnect:(Lio/vertx/core/net/SocketAddress;Ljava/lang/String;Lio/vertx/core/Promise;Lio/vertx/core/impl/ContextInternal;)V
3: aload 4
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/net/impl/NetClientImpl;
0 4 1 remoteAddress Lio/vertx/core/net/SocketAddress;
0 4 2 serverName Ljava/lang/String;
1 4 3 ctx Lio/vertx/core/impl/ContextInternal;
2 4 4 promise Lio/vertx/core/Promise<Lio/vertx/core/net/NetSocket;>;
Signature: (Lio/vertx/core/net/SocketAddress;Ljava/lang/String;)Lio/vertx/core/Future<Lio/vertx/core/net/NetSocket;>;
MethodParameters:
Name Flags
remoteAddress
serverName
public io.vertx.core.net.NetClient connect(int, java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.net.NetSocket>>);
descriptor: (ILjava/lang/String;Lio/vertx/core/Handler;)Lio/vertx/core/net/NetClient;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
iload 1
aload 2
aconst_null
aload 3
invokevirtual io.vertx.core.net.impl.NetClientImpl.connect:(ILjava/lang/String;Ljava/lang/String;Lio/vertx/core/Handler;)Lio/vertx/core/net/NetClient;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/net/impl/NetClientImpl;
0 1 1 port I
0 1 2 host Ljava/lang/String;
0 1 3 connectHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/net/NetSocket;>;>;
Signature: (ILjava/lang/String;Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/net/NetSocket;>;>;)Lio/vertx/core/net/NetClient;
MethodParameters:
Name Flags
port
host
connectHandler
public io.vertx.core.net.NetClient connect(int, java.lang.String, java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.net.NetSocket>>);
descriptor: (ILjava/lang/String;Ljava/lang/String;Lio/vertx/core/Handler;)Lio/vertx/core/net/NetClient;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
iload 1
aload 2
invokestatic io.vertx.core.net.SocketAddress.inetSocketAddress:(ILjava/lang/String;)Lio/vertx/core/net/SocketAddress;
aload 3
aload 4
invokevirtual io.vertx.core.net.impl.NetClientImpl.connect:(Lio/vertx/core/net/SocketAddress;Ljava/lang/String;Lio/vertx/core/Handler;)Lio/vertx/core/net/NetClient;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/net/impl/NetClientImpl;
0 1 1 port I
0 1 2 host Ljava/lang/String;
0 1 3 serverName Ljava/lang/String;
0 1 4 connectHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/net/NetSocket;>;>;
Signature: (ILjava/lang/String;Ljava/lang/String;Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/net/NetSocket;>;>;)Lio/vertx/core/net/NetClient;
MethodParameters:
Name Flags
port
host
serverName
connectHandler
public void close(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>);
descriptor: (Lio/vertx/core/Handler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.net.impl.NetClientImpl.vertx:Lio/vertx/core/impl/VertxInternal;
invokeinterface io.vertx.core.impl.VertxInternal.getOrCreateContext:()Lio/vertx/core/impl/ContextInternal;
astore 2
start local 2 1: aload 0
getfield io.vertx.core.net.impl.NetClientImpl.closeFuture:Lio/vertx/core/impl/CloseFuture;
aload 1
ifnull 2
aload 2
aload 1
invokeinterface io.vertx.core.impl.ContextInternal.promise:(Lio/vertx/core/Handler;)Lio/vertx/core/impl/future/PromiseInternal;
goto 3
StackMap locals: io.vertx.core.net.impl.NetClientImpl io.vertx.core.Handler io.vertx.core.impl.ContextInternal
StackMap stack: io.vertx.core.impl.CloseFuture
2: aconst_null
StackMap locals: io.vertx.core.net.impl.NetClientImpl io.vertx.core.Handler io.vertx.core.impl.ContextInternal
StackMap stack: io.vertx.core.impl.CloseFuture io.vertx.core.impl.future.PromiseInternal
3: invokevirtual io.vertx.core.impl.CloseFuture.close:(Lio/vertx/core/Promise;)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/vertx/core/net/impl/NetClientImpl;
0 5 1 handler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;>;
1 5 2 closingCtx Lio/vertx/core/impl/ContextInternal;
Signature: (Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;>;)V
MethodParameters:
Name Flags
handler
public io.vertx.core.Future<java.lang.Void> close();
descriptor: ()Lio/vertx/core/Future;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.net.impl.NetClientImpl.vertx:Lio/vertx/core/impl/VertxInternal;
invokeinterface io.vertx.core.impl.VertxInternal.getOrCreateContext:()Lio/vertx/core/impl/ContextInternal;
astore 1
start local 1 1: aload 1
invokeinterface io.vertx.core.impl.ContextInternal.promise:()Lio/vertx/core/impl/future/PromiseInternal;
astore 2
start local 2 2: aload 0
getfield io.vertx.core.net.impl.NetClientImpl.closeFuture:Lio/vertx/core/impl/CloseFuture;
aload 2
invokevirtual io.vertx.core.impl.CloseFuture.close:(Lio/vertx/core/Promise;)V
3: aload 2
invokeinterface io.vertx.core.impl.future.PromiseInternal.future:()Lio/vertx/core/Future;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/net/impl/NetClientImpl;
1 4 1 closingCtx Lio/vertx/core/impl/ContextInternal;
2 4 2 promise Lio/vertx/core/impl/future/PromiseInternal<Ljava/lang/Void;>;
Signature: ()Lio/vertx/core/Future<Ljava/lang/Void;>;
public void close(io.vertx.core.Promise<java.lang.Void>);
descriptor: (Lio/vertx/core/Promise;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.net.impl.NetClientImpl.channelGroup:Lio/netty/channel/group/ChannelGroup;
invokeinterface io.netty.channel.group.ChannelGroup.close:()Lio/netty/channel/group/ChannelGroupFuture;
astore 2
start local 2 1: aload 0
getfield io.vertx.core.net.impl.NetClientImpl.metrics:Lio/vertx/core/spi/metrics/TCPMetrics;
ifnull 7
2: invokestatic io.vertx.core.Promise.promise:()Lio/vertx/core/Promise;
checkcast io.vertx.core.impl.future.PromiseInternal
astore 3
start local 3 3: aload 2
aload 3
invokeinterface io.netty.channel.group.ChannelGroupFuture.addListener:(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/channel/group/ChannelGroupFuture;
pop
4: aload 3
invokeinterface io.vertx.core.impl.future.PromiseInternal.future:()Lio/vertx/core/Future;
aload 0
invokedynamic apply(Lio/vertx/core/net/impl/NetClientImpl;)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/core/net/impl/NetClientImpl.lambda$0(Ljava/lang/Void;)Lio/vertx/core/Future; (7)
(Ljava/lang/Void;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Future.compose:(Ljava/util/function/Function;)Lio/vertx/core/Future;
5: aload 1
invokeinterface io.vertx.core.Future.onComplete:(Lio/vertx/core/Handler;)Lio/vertx/core/Future;
pop
end local 3 6: goto 8
7: StackMap locals: io.netty.channel.group.ChannelGroupFuture
StackMap stack:
aload 2
aload 1
checkcast io.vertx.core.impl.future.PromiseInternal
invokeinterface io.netty.channel.group.ChannelGroupFuture.addListener:(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/channel/group/ChannelGroupFuture;
pop
8: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/vertx/core/net/impl/NetClientImpl;
0 9 1 completion Lio/vertx/core/Promise<Ljava/lang/Void;>;
1 9 2 fut Lio/netty/channel/group/ChannelGroupFuture;
3 6 3 p Lio/vertx/core/impl/future/PromiseInternal<Ljava/lang/Void;>;
Signature: (Lio/vertx/core/Promise<Ljava/lang/Void;>;)V
MethodParameters:
Name Flags
completion
public boolean isMetricsEnabled();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.net.impl.NetClientImpl.metrics:Lio/vertx/core/spi/metrics/TCPMetrics;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/core/net/impl/NetClientImpl;
public io.vertx.core.spi.metrics.Metrics getMetrics();
descriptor: ()Lio/vertx/core/spi/metrics/Metrics;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.net.impl.NetClientImpl.metrics:Lio/vertx/core/spi/metrics/TCPMetrics;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/net/impl/NetClientImpl;
private void checkClosed();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.net.impl.NetClientImpl.closeFuture:Lio/vertx/core/impl/CloseFuture;
invokevirtual io.vertx.core.impl.CloseFuture.isClosed:()Z
ifeq 2
1: new java.lang.IllegalStateException
dup
ldc "Client is closed"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/core/net/impl/NetClientImpl;
private void applyConnectionOptions(boolean, io.netty.bootstrap.Bootstrap);
descriptor: (ZLio/netty/bootstrap/Bootstrap;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.vertx.core.net.impl.NetClientImpl.vertx:Lio/vertx/core/impl/VertxInternal;
invokeinterface io.vertx.core.impl.VertxInternal.transport:()Lio/vertx/core/net/impl/transport/Transport;
aload 0
getfield io.vertx.core.net.impl.NetClientImpl.options:Lio/vertx/core/net/NetClientOptions;
iload 1
aload 2
invokevirtual io.vertx.core.net.impl.transport.Transport.configure:(Lio/vertx/core/net/ClientOptionsBase;ZLio/netty/bootstrap/Bootstrap;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/core/net/impl/NetClientImpl;
0 2 1 domainSocket Z
0 2 2 bootstrap Lio/netty/bootstrap/Bootstrap;
MethodParameters:
Name Flags
domainSocket
bootstrap
public io.vertx.core.net.NetClient connect(io.vertx.core.net.SocketAddress, java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.net.NetSocket>>);
descriptor: (Lio/vertx/core/net/SocketAddress;Ljava/lang/String;Lio/vertx/core/Handler;)Lio/vertx/core/net/NetClient;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
ldc "No null connectHandler accepted"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 0
getfield io.vertx.core.net.impl.NetClientImpl.vertx:Lio/vertx/core/impl/VertxInternal;
invokeinterface io.vertx.core.impl.VertxInternal.getOrCreateContext:()Lio/vertx/core/impl/ContextInternal;
astore 4
start local 4 2: aload 4
invokeinterface io.vertx.core.impl.ContextInternal.promise:()Lio/vertx/core/impl/future/PromiseInternal;
astore 5
start local 5 3: aload 5
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
aload 3
invokeinterface io.vertx.core.Future.onComplete:(Lio/vertx/core/Handler;)Lio/vertx/core/Future;
pop
4: aload 0
aload 1
aload 2
aload 5
aload 4
invokevirtual io.vertx.core.net.impl.NetClientImpl.doConnect:(Lio/vertx/core/net/SocketAddress;Ljava/lang/String;Lio/vertx/core/Promise;Lio/vertx/core/impl/ContextInternal;)V
5: aload 0
areturn
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 6 0 this Lio/vertx/core/net/impl/NetClientImpl;
0 6 1 remoteAddress Lio/vertx/core/net/SocketAddress;
0 6 2 serverName Ljava/lang/String;
0 6 3 connectHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/net/NetSocket;>;>;
2 6 4 ctx Lio/vertx/core/impl/ContextInternal;
3 6 5 promise Lio/vertx/core/Promise<Lio/vertx/core/net/NetSocket;>;
Signature: (Lio/vertx/core/net/SocketAddress;Ljava/lang/String;Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/net/NetSocket;>;>;)Lio/vertx/core/net/NetClient;
MethodParameters:
Name Flags
remoteAddress
serverName
connectHandler
public io.vertx.core.net.NetClient connect(io.vertx.core.net.SocketAddress, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.net.NetSocket>>);
descriptor: (Lio/vertx/core/net/SocketAddress;Lio/vertx/core/Handler;)Lio/vertx/core/net/NetClient;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aconst_null
aload 2
invokevirtual io.vertx.core.net.impl.NetClientImpl.connect:(Lio/vertx/core/net/SocketAddress;Ljava/lang/String;Lio/vertx/core/Handler;)Lio/vertx/core/net/NetClient;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/net/impl/NetClientImpl;
0 1 1 remoteAddress Lio/vertx/core/net/SocketAddress;
0 1 2 connectHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/net/NetSocket;>;>;
Signature: (Lio/vertx/core/net/SocketAddress;Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/net/NetSocket;>;>;)Lio/vertx/core/net/NetClient;
MethodParameters:
Name Flags
remoteAddress
connectHandler
private void doConnect(io.vertx.core.net.SocketAddress, java.lang.String, io.vertx.core.Promise<io.vertx.core.net.NetSocket>, io.vertx.core.impl.ContextInternal);
descriptor: (Lio/vertx/core/net/SocketAddress;Ljava/lang/String;Lio/vertx/core/Promise;Lio/vertx/core/impl/ContextInternal;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
aload 3
aload 4
aload 0
getfield io.vertx.core.net.impl.NetClientImpl.options:Lio/vertx/core/net/NetClientOptions;
invokevirtual io.vertx.core.net.NetClientOptions.getReconnectAttempts:()I
invokevirtual io.vertx.core.net.impl.NetClientImpl.doConnect:(Lio/vertx/core/net/SocketAddress;Ljava/lang/String;Lio/vertx/core/Promise;Lio/vertx/core/impl/ContextInternal;I)V
1: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/core/net/impl/NetClientImpl;
0 2 1 remoteAddress Lio/vertx/core/net/SocketAddress;
0 2 2 serverName Ljava/lang/String;
0 2 3 connectHandler Lio/vertx/core/Promise<Lio/vertx/core/net/NetSocket;>;
0 2 4 ctx Lio/vertx/core/impl/ContextInternal;
Signature: (Lio/vertx/core/net/SocketAddress;Ljava/lang/String;Lio/vertx/core/Promise<Lio/vertx/core/net/NetSocket;>;Lio/vertx/core/impl/ContextInternal;)V
MethodParameters:
Name Flags
remoteAddress
serverName
connectHandler
ctx
private void doConnect(io.vertx.core.net.SocketAddress, java.lang.String, io.vertx.core.Promise<io.vertx.core.net.NetSocket>, io.vertx.core.impl.ContextInternal, );
descriptor: (Lio/vertx/core/net/SocketAddress;Ljava/lang/String;Lio/vertx/core/Promise;Lio/vertx/core/impl/ContextInternal;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=11, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokevirtual io.vertx.core.net.impl.NetClientImpl.checkClosed:()V
1: aload 3
ldc "No null connectHandler accepted"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
2: aload 0
getfield io.vertx.core.net.impl.NetClientImpl.sslHelper:Lio/vertx/core/net/impl/SSLHelper;
aload 0
getfield io.vertx.core.net.impl.NetClientImpl.vertx:Lio/vertx/core/impl/VertxInternal;
invokevirtual io.vertx.core.net.impl.SSLHelper.validate:(Lio/vertx/core/impl/VertxInternal;)V
3: new io.netty.bootstrap.Bootstrap
dup
invokespecial io.netty.bootstrap.Bootstrap.<init>:()V
astore 6
start local 6 4: aload 6
aload 4
invokeinterface io.vertx.core.impl.ContextInternal.nettyEventLoop:()Lio/netty/channel/EventLoop;
invokevirtual io.netty.bootstrap.Bootstrap.group:(Lio/netty/channel/EventLoopGroup;)Lio/netty/bootstrap/AbstractBootstrap;
pop
5: aload 0
aload 1
invokeinterface io.vertx.core.net.SocketAddress.isDomainSocket:()Z
aload 6
invokevirtual io.vertx.core.net.impl.NetClientImpl.applyConnectionOptions:(ZLio/netty/bootstrap/Bootstrap;)V
6: new io.vertx.core.net.impl.ChannelProvider
dup
aload 6
aload 0
getfield io.vertx.core.net.impl.NetClientImpl.sslHelper:Lio/vertx/core/net/impl/SSLHelper;
aload 4
aload 0
getfield io.vertx.core.net.impl.NetClientImpl.options:Lio/vertx/core/net/NetClientOptions;
invokevirtual io.vertx.core.net.NetClientOptions.getProxyOptions:()Lio/vertx/core/net/ProxyOptions;
invokespecial io.vertx.core.net.impl.ChannelProvider.<init>:(Lio/netty/bootstrap/Bootstrap;Lio/vertx/core/net/impl/SSLHelper;Lio/vertx/core/impl/ContextInternal;Lio/vertx/core/net/ProxyOptions;)V
astore 7
start local 7 7: aload 1
astore 8
start local 8 8: aload 8
invokeinterface io.vertx.core.net.SocketAddress.host:()Ljava/lang/String;
astore 9
start local 9 9: aload 9
ifnull 11
aload 9
ldc "."
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 11
10: aload 8
invokeinterface io.vertx.core.net.SocketAddress.port:()I
aload 9
iconst_0
aload 9
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic io.vertx.core.net.SocketAddress.inetSocketAddress:(ILjava/lang/String;)Lio/vertx/core/net/SocketAddress;
astore 8
11: StackMap locals: io.vertx.core.net.impl.NetClientImpl io.vertx.core.net.SocketAddress java.lang.String io.vertx.core.Promise io.vertx.core.impl.ContextInternal int io.netty.bootstrap.Bootstrap io.vertx.core.net.impl.ChannelProvider io.vertx.core.net.SocketAddress java.lang.String
StackMap stack:
aload 7
aload 1
aload 8
aload 2
aload 0
getfield io.vertx.core.net.impl.NetClientImpl.sslHelper:Lio/vertx/core/net/impl/SSLHelper;
invokevirtual io.vertx.core.net.impl.SSLHelper.isSSL:()Z
invokevirtual io.vertx.core.net.impl.ChannelProvider.connect:(Lio/vertx/core/net/SocketAddress;Lio/vertx/core/net/SocketAddress;Ljava/lang/String;Z)Lio/netty/util/concurrent/Future;
astore 10
start local 10 12: aload 10
aload 0
aload 4
aload 3
aload 1
iload 5
aload 2
invokedynamic operationComplete(Lio/vertx/core/net/impl/NetClientImpl;Lio/vertx/core/impl/ContextInternal;Lio/vertx/core/Promise;Lio/vertx/core/net/SocketAddress;ILjava/lang/String;)Lio/netty/util/concurrent/GenericFutureListener;
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:
(Lio/netty/util/concurrent/Future;)V
io/vertx/core/net/impl/NetClientImpl.lambda$1(Lio/vertx/core/impl/ContextInternal;Lio/vertx/core/Promise;Lio/vertx/core/net/SocketAddress;ILjava/lang/String;Lio/netty/util/concurrent/Future;)V (7)
(Lio/netty/util/concurrent/Future;)V
invokeinterface io.netty.util.concurrent.Future.addListener:(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/util/concurrent/Future;
pop
13: return
end local 10 end local 9 end local 8 end local 7 end local 6 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 14 0 this Lio/vertx/core/net/impl/NetClientImpl;
0 14 1 remoteAddress Lio/vertx/core/net/SocketAddress;
0 14 2 serverName Ljava/lang/String;
0 14 3 connectHandler Lio/vertx/core/Promise<Lio/vertx/core/net/NetSocket;>;
0 14 4 context Lio/vertx/core/impl/ContextInternal;
0 14 5 remainingAttempts I
4 14 6 bootstrap Lio/netty/bootstrap/Bootstrap;
7 14 7 channelProvider Lio/vertx/core/net/impl/ChannelProvider;
8 14 8 peerAddress Lio/vertx/core/net/SocketAddress;
9 14 9 peerHost Ljava/lang/String;
12 14 10 fut Lio/netty/util/concurrent/Future<Lio/netty/channel/Channel;>;
Signature: (Lio/vertx/core/net/SocketAddress;Ljava/lang/String;Lio/vertx/core/Promise<Lio/vertx/core/net/NetSocket;>;Lio/vertx/core/impl/ContextInternal;I)V
MethodParameters:
Name Flags
remoteAddress
serverName
connectHandler
context
remainingAttempts
private void connected(io.vertx.core.impl.ContextInternal, io.netty.channel.Channel, io.vertx.core.Promise<io.vertx.core.net.NetSocket>, io.vertx.core.net.SocketAddress);
descriptor: (Lio/vertx/core/impl/ContextInternal;Lio/netty/channel/Channel;Lio/vertx/core/Promise;Lio/vertx/core/net/SocketAddress;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
getfield io.vertx.core.net.impl.NetClientImpl.channelGroup:Lio/netty/channel/group/ChannelGroup;
aload 2
invokeinterface io.netty.channel.group.ChannelGroup.add:(Ljava/lang/Object;)Z
pop
1: aload 0
aload 2
invokeinterface io.netty.channel.Channel.pipeline:()Lio/netty/channel/ChannelPipeline;
invokevirtual io.vertx.core.net.impl.NetClientImpl.initChannel:(Lio/netty/channel/ChannelPipeline;)V
2: aload 0
aload 1
aload 4
invokedynamic apply(Lio/vertx/core/net/impl/NetClientImpl;Lio/vertx/core/impl/ContextInternal;Lio/vertx/core/net/SocketAddress;)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/core/net/impl/NetClientImpl.lambda$4(Lio/vertx/core/impl/ContextInternal;Lio/vertx/core/net/SocketAddress;Lio/netty/channel/ChannelHandlerContext;)Lio/vertx/core/net/impl/NetSocketImpl; (7)
(Lio/netty/channel/ChannelHandlerContext;)Lio/vertx/core/net/impl/NetSocketImpl;
invokestatic io.vertx.core.net.impl.VertxHandler.create:(Ljava/util/function/Function;)Lio/vertx/core/net/impl/VertxHandler;
astore 5
start local 5 3: aload 5
aload 0
aload 3
invokedynamic handle(Lio/vertx/core/net/impl/NetClientImpl;Lio/vertx/core/Promise;)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/core/net/impl/NetClientImpl.lambda$5(Lio/vertx/core/Promise;Lio/vertx/core/net/impl/NetSocketImpl;)V (7)
(Lio/vertx/core/net/impl/NetSocketImpl;)V
invokevirtual io.vertx.core.net.impl.VertxHandler.addHandler:(Lio/vertx/core/Handler;)Lio/vertx/core/net/impl/VertxHandler;
pop
4: aload 2
invokeinterface io.netty.channel.Channel.pipeline:()Lio/netty/channel/ChannelPipeline;
ldc "handler"
aload 5
invokeinterface io.netty.channel.ChannelPipeline.addLast:(Ljava/lang/String;Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
5: 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 6 0 this Lio/vertx/core/net/impl/NetClientImpl;
0 6 1 context Lio/vertx/core/impl/ContextInternal;
0 6 2 ch Lio/netty/channel/Channel;
0 6 3 connectHandler Lio/vertx/core/Promise<Lio/vertx/core/net/NetSocket;>;
0 6 4 remoteAddress Lio/vertx/core/net/SocketAddress;
3 6 5 handler Lio/vertx/core/net/impl/VertxHandler<Lio/vertx/core/net/impl/NetSocketImpl;>;
Signature: (Lio/vertx/core/impl/ContextInternal;Lio/netty/channel/Channel;Lio/vertx/core/Promise<Lio/vertx/core/net/NetSocket;>;Lio/vertx/core/net/SocketAddress;)V
MethodParameters:
Name Flags
context
ch
connectHandler
remoteAddress
private void failed(io.vertx.core.impl.ContextInternal, io.netty.channel.Channel, java.lang.Throwable, io.vertx.core.Promise<io.vertx.core.net.NetSocket>);
descriptor: (Lio/vertx/core/impl/ContextInternal;Lio/netty/channel/Channel;Ljava/lang/Throwable;Lio/vertx/core/Promise;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 2
ifnull 2
1: aload 2
invokeinterface io.netty.channel.Channel.close:()Lio/netty/channel/ChannelFuture;
pop
2: StackMap locals:
StackMap stack:
aload 1
aload 3
aload 4
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic handle(Lio/vertx/core/Promise;)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/core/Promise.tryFail(Ljava/lang/Throwable;)Z (9 itf)
(Ljava/lang/Throwable;)V
invokeinterface io.vertx.core.impl.ContextInternal.emit:(Ljava/lang/Object;Lio/vertx/core/Handler;)V
3: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/net/impl/NetClientImpl;
0 4 1 context Lio/vertx/core/impl/ContextInternal;
0 4 2 ch Lio/netty/channel/Channel;
0 4 3 th Ljava/lang/Throwable;
0 4 4 connectHandler Lio/vertx/core/Promise<Lio/vertx/core/net/NetSocket;>;
Signature: (Lio/vertx/core/impl/ContextInternal;Lio/netty/channel/Channel;Ljava/lang/Throwable;Lio/vertx/core/Promise<Lio/vertx/core/net/NetSocket;>;)V
MethodParameters:
Name Flags
context
ch
th
connectHandler
protected void finalize();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic io.vertx.core.Promise.promise:()Lio/vertx/core/Promise;
invokevirtual io.vertx.core.net.impl.NetClientImpl.close:(Lio/vertx/core/Handler;)V
1: aload 0
invokespecial java.lang.Object.finalize:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/core/net/impl/NetClientImpl;
Exceptions:
throws java.lang.Throwable
private io.vertx.core.Future lambda$0(java.lang.Void);
descriptor: (Ljava/lang/Void;)Lio/vertx/core/Future;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.net.impl.NetClientImpl.metrics:Lio/vertx/core/spi/metrics/TCPMetrics;
invokeinterface io.vertx.core.spi.metrics.TCPMetrics.close:()V
1: invokestatic io.vertx.core.Future.succeededFuture:()Lio/vertx/core/Future;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/core/net/impl/NetClientImpl;
0 2 1 v Ljava/lang/Void;
private void lambda$1(io.vertx.core.impl.ContextInternal, io.vertx.core.Promise, io.vertx.core.net.SocketAddress, int, java.lang.String, io.netty.util.concurrent.Future);
descriptor: (Lio/vertx/core/impl/ContextInternal;Lio/vertx/core/Promise;Lio/vertx/core/net/SocketAddress;ILjava/lang/String;Lio/netty/util/concurrent/Future;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=7, locals=9, args_size=7
start local 0 start local 6 0: aload 6
invokeinterface io.netty.util.concurrent.Future.isSuccess:()Z
ifeq 4
1: aload 6
invokeinterface io.netty.util.concurrent.Future.getNow:()Ljava/lang/Object;
checkcast io.netty.channel.Channel
astore 7
start local 7 2: aload 0
aload 1
aload 7
aload 2
aload 3
invokevirtual io.vertx.core.net.impl.NetClientImpl.connected:(Lio/vertx/core/impl/ContextInternal;Lio/netty/channel/Channel;Lio/vertx/core/Promise;Lio/vertx/core/net/SocketAddress;)V
end local 7 3: goto 12
4: StackMap locals:
StackMap stack:
aload 6
invokeinterface io.netty.util.concurrent.Future.cause:()Ljava/lang/Throwable;
astore 7
start local 7 5: aload 7
instanceof java.net.ConnectException
ifne 6
aload 7
instanceof java.io.FileNotFoundException
ifne 6
iconst_0
goto 7
StackMap locals: java.lang.Throwable
StackMap stack:
6: iconst_1
StackMap locals:
StackMap stack: int
7: istore 8
start local 8 8: iload 8
ifeq 11
iload 4
ifgt 9
iload 4
iconst_m1
if_icmpne 11
9: StackMap locals: int
StackMap stack:
aload 1
aload 0
aload 3
aload 5
aload 2
aload 1
iload 4
invokedynamic handle(Lio/vertx/core/net/impl/NetClientImpl;Lio/vertx/core/net/SocketAddress;Ljava/lang/String;Lio/vertx/core/Promise;Lio/vertx/core/impl/ContextInternal;I)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/core/net/impl/NetClientImpl.lambda$2(Lio/vertx/core/net/SocketAddress;Ljava/lang/String;Lio/vertx/core/Promise;Lio/vertx/core/impl/ContextInternal;ILjava/lang/Void;)V (7)
(Ljava/lang/Void;)V
invokeinterface io.vertx.core.impl.ContextInternal.emit:(Lio/vertx/core/Handler;)V
10: goto 12
11: StackMap locals:
StackMap stack:
aload 0
aload 1
aconst_null
aload 7
aload 2
invokevirtual io.vertx.core.net.impl.NetClientImpl.failed:(Lio/vertx/core/impl/ContextInternal;Lio/netty/channel/Channel;Ljava/lang/Throwable;Lio/vertx/core/Promise;)V
end local 8 end local 7 12: StackMap locals:
StackMap stack:
return
end local 6 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lio/vertx/core/net/impl/NetClientImpl;
0 13 6 future Lio/netty/util/concurrent/Future<Lio/netty/channel/Channel;>;
2 3 7 ch Lio/netty/channel/Channel;
5 12 7 cause Ljava/lang/Throwable;
8 12 8 connectError Z
Exceptions:
throws java.lang.Exception
private io.vertx.core.net.impl.NetSocketImpl lambda$4(io.vertx.core.impl.ContextInternal, io.vertx.core.net.SocketAddress, io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/vertx/core/impl/ContextInternal;Lio/vertx/core/net/SocketAddress;Lio/netty/channel/ChannelHandlerContext;)Lio/vertx/core/net/impl/NetSocketImpl;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=7, locals=4, args_size=4
start local 0 start local 3 0: new io.vertx.core.net.impl.NetSocketImpl
dup
aload 1
aload 3
aload 2
aload 0
getfield io.vertx.core.net.impl.NetClientImpl.sslHelper:Lio/vertx/core/net/impl/SSLHelper;
aload 0
getfield io.vertx.core.net.impl.NetClientImpl.metrics:Lio/vertx/core/spi/metrics/TCPMetrics;
invokespecial io.vertx.core.net.impl.NetSocketImpl.<init>:(Lio/vertx/core/impl/ContextInternal;Lio/netty/channel/ChannelHandlerContext;Lio/vertx/core/net/SocketAddress;Lio/vertx/core/net/impl/SSLHelper;Lio/vertx/core/spi/metrics/TCPMetrics;)V
areturn
end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/net/impl/NetClientImpl;
0 1 3 ctx Lio/netty/channel/ChannelHandlerContext;
private void lambda$5(io.vertx.core.Promise, io.vertx.core.net.impl.NetSocketImpl);
descriptor: (Lio/vertx/core/Promise;Lio/vertx/core/net/impl/NetSocketImpl;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 2 0: aload 0
getfield io.vertx.core.net.impl.NetClientImpl.metrics:Lio/vertx/core/spi/metrics/TCPMetrics;
ifnull 2
1: aload 2
aload 0
getfield io.vertx.core.net.impl.NetClientImpl.metrics:Lio/vertx/core/spi/metrics/TCPMetrics;
aload 2
invokevirtual io.vertx.core.net.impl.NetSocketImpl.remoteAddress:()Lio/vertx/core/net/SocketAddress;
aload 2
invokevirtual io.vertx.core.net.impl.NetSocketImpl.remoteName:()Ljava/lang/String;
invokeinterface io.vertx.core.spi.metrics.TCPMetrics.connected:(Lio/vertx/core/net/SocketAddress;Ljava/lang/String;)Ljava/lang/Object;
invokevirtual io.vertx.core.net.impl.NetSocketImpl.metric:(Ljava/lang/Object;)V
2: StackMap locals:
StackMap stack:
aload 2
invokevirtual io.vertx.core.net.impl.NetSocketImpl.registerEventBusHandler:()V
3: aload 1
aload 2
invokeinterface io.vertx.core.Promise.complete:(Ljava/lang/Object;)V
4: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/vertx/core/net/impl/NetClientImpl;
0 5 2 sock Lio/vertx/core/net/impl/NetSocketImpl;
private void lambda$2(io.vertx.core.net.SocketAddress, java.lang.String, io.vertx.core.Promise, io.vertx.core.impl.ContextInternal, int, java.lang.Void);
descriptor: (Lio/vertx/core/net/SocketAddress;Ljava/lang/String;Lio/vertx/core/Promise;Lio/vertx/core/impl/ContextInternal;ILjava/lang/Void;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=9, locals=7, args_size=7
start local 0 start local 6 0: getstatic io.vertx.core.net.impl.NetClientImpl.log:Lio/vertx/core/impl/logging/Logger;
new java.lang.StringBuilder
dup
ldc "Failed to create connection. Will retry in "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield io.vertx.core.net.impl.NetClientImpl.options:Lio/vertx/core/net/NetClientOptions;
invokevirtual io.vertx.core.net.NetClientOptions.getReconnectInterval:()J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " milliseconds"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface io.vertx.core.impl.logging.Logger.debug:(Ljava/lang/Object;)V
1: aload 0
getfield io.vertx.core.net.impl.NetClientImpl.vertx:Lio/vertx/core/impl/VertxInternal;
aload 0
getfield io.vertx.core.net.impl.NetClientImpl.options:Lio/vertx/core/net/NetClientOptions;
invokevirtual io.vertx.core.net.NetClientOptions.getReconnectInterval:()J
aload 0
aload 1
aload 2
aload 3
aload 4
iload 5
invokedynamic handle(Lio/vertx/core/net/impl/NetClientImpl;Lio/vertx/core/net/SocketAddress;Ljava/lang/String;Lio/vertx/core/Promise;Lio/vertx/core/impl/ContextInternal;I)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/core/net/impl/NetClientImpl.lambda$3(Lio/vertx/core/net/SocketAddress;Ljava/lang/String;Lio/vertx/core/Promise;Lio/vertx/core/impl/ContextInternal;ILjava/lang/Long;)V (7)
(Ljava/lang/Long;)V
invokeinterface io.vertx.core.impl.VertxInternal.setTimer:(JLio/vertx/core/Handler;)J
pop2
2: return
end local 6 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/core/net/impl/NetClientImpl;
0 3 6 v Ljava/lang/Void;
private void lambda$3(io.vertx.core.net.SocketAddress, java.lang.String, io.vertx.core.Promise, io.vertx.core.impl.ContextInternal, int, java.lang.Long);
descriptor: (Lio/vertx/core/net/SocketAddress;Ljava/lang/String;Lio/vertx/core/Promise;Lio/vertx/core/impl/ContextInternal;ILjava/lang/Long;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=7, locals=7, args_size=7
start local 0 start local 6 0: aload 0
aload 1
aload 2
aload 3
aload 4
iload 5
iconst_m1
if_icmpne 1
iload 5
goto 2
StackMap locals: io.vertx.core.net.impl.NetClientImpl io.vertx.core.net.SocketAddress java.lang.String io.vertx.core.Promise io.vertx.core.impl.ContextInternal int java.lang.Long
StackMap stack: io.vertx.core.net.impl.NetClientImpl io.vertx.core.net.SocketAddress java.lang.String io.vertx.core.Promise io.vertx.core.impl.ContextInternal
1: iload 5
iconst_1
isub
StackMap locals: io.vertx.core.net.impl.NetClientImpl io.vertx.core.net.SocketAddress java.lang.String io.vertx.core.Promise io.vertx.core.impl.ContextInternal int java.lang.Long
StackMap stack: io.vertx.core.net.impl.NetClientImpl io.vertx.core.net.SocketAddress java.lang.String io.vertx.core.Promise io.vertx.core.impl.ContextInternal int
2: invokevirtual io.vertx.core.net.impl.NetClientImpl.doConnect:(Lio/vertx/core/net/SocketAddress;Ljava/lang/String;Lio/vertx/core/Promise;Lio/vertx/core/impl/ContextInternal;I)V
return
end local 6 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/core/net/impl/NetClientImpl;
0 3 6 tid Ljava/lang/Long;
}
SourceFile: "NetClientImpl.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles