public class io.vertx.mysqlclient.impl.MySQLConnectionFactory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.mysqlclient.impl.MySQLConnectionFactory
super_class: java.lang.Object
{
private final io.vertx.core.net.NetClient netClient;
descriptor: Lio/vertx/core/net/NetClient;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.core.Context context;
descriptor: Lio/vertx/core/Context;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean registerCloseHook;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String host;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int port;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String username;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String password;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String database;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Map<java.lang.String, java.lang.String> properties;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
private final boolean ssl;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
ConstantValue: 0
private final boolean cachePreparedStatements;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int preparedStatementCacheSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int preparedStatementCacheSqlLimit;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.core.Closeable hook;
descriptor: Lio/vertx/core/Closeable;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(io.vertx.core.Context, boolean, io.vertx.mysqlclient.MySQLConnectOptions);
descriptor: (Lio/vertx/core/Context;ZLio/vertx/mysqlclient/MySQLConnectOptions;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, 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
iconst_0
putfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.ssl:Z
2: new io.vertx.core.net.NetClientOptions
dup
aload 3
invokespecial io.vertx.core.net.NetClientOptions.<init>:(Lio/vertx/core/net/NetClientOptions;)V
astore 4
start local 4 3: aload 0
aload 1
putfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.context:Lio/vertx/core/Context;
4: aload 0
iload 2
putfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.registerCloseHook:Z
5: aload 0
aload 0
invokedynamic close(Lio/vertx/mysqlclient/impl/MySQLConnectionFactory;)Lio/vertx/core/Closeable;
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/vertx/core/Handler;)V
io/vertx/mysqlclient/impl/MySQLConnectionFactory.close(Lio/vertx/core/Handler;)V (7)
(Lio/vertx/core/Handler;)V
putfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.hook:Lio/vertx/core/Closeable;
6: iload 2
ifeq 8
7: aload 1
aload 0
getfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.hook:Lio/vertx/core/Closeable;
invokeinterface io.vertx.core.Context.addCloseHook:(Lio/vertx/core/Closeable;)V
8: StackMap locals: io.vertx.mysqlclient.impl.MySQLConnectionFactory io.vertx.core.Context int io.vertx.mysqlclient.MySQLConnectOptions io.vertx.core.net.NetClientOptions
StackMap stack:
aload 0
aload 3
invokevirtual io.vertx.mysqlclient.MySQLConnectOptions.getHost:()Ljava/lang/String;
putfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.host:Ljava/lang/String;
9: aload 0
aload 3
invokevirtual io.vertx.mysqlclient.MySQLConnectOptions.getPort:()I
putfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.port:I
10: aload 0
aload 3
invokevirtual io.vertx.mysqlclient.MySQLConnectOptions.getUser:()Ljava/lang/String;
putfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.username:Ljava/lang/String;
11: aload 0
aload 3
invokevirtual io.vertx.mysqlclient.MySQLConnectOptions.getPassword:()Ljava/lang/String;
putfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.password:Ljava/lang/String;
12: aload 0
aload 3
invokevirtual io.vertx.mysqlclient.MySQLConnectOptions.getDatabase:()Ljava/lang/String;
putfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.database:Ljava/lang/String;
13: aload 0
new java.util.HashMap
dup
aload 3
invokevirtual io.vertx.mysqlclient.MySQLConnectOptions.getProperties:()Ljava/util/Map;
invokespecial java.util.HashMap.<init>:(Ljava/util/Map;)V
putfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.properties:Ljava/util/Map;
14: aload 0
getfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.properties:Ljava/util/Map;
ldc "collation"
aload 3
invokevirtual io.vertx.mysqlclient.MySQLConnectOptions.getCollation:()Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
15: aload 0
aload 3
invokevirtual io.vertx.mysqlclient.MySQLConnectOptions.getCachePreparedStatements:()Z
putfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.cachePreparedStatements:Z
16: aload 0
aload 3
invokevirtual io.vertx.mysqlclient.MySQLConnectOptions.getPreparedStatementCacheMaxSize:()I
putfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.preparedStatementCacheSize:I
17: aload 0
aload 3
invokevirtual io.vertx.mysqlclient.MySQLConnectOptions.getPreparedStatementCacheSqlLimit:()I
putfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.preparedStatementCacheSqlLimit:I
18: aload 0
aload 1
invokeinterface io.vertx.core.Context.owner:()Lio/vertx/core/Vertx;
aload 4
invokeinterface io.vertx.core.Vertx.createNetClient:(Lio/vertx/core/net/NetClientOptions;)Lio/vertx/core/net/NetClient;
putfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.netClient:Lio/vertx/core/net/NetClient;
19: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lio/vertx/mysqlclient/impl/MySQLConnectionFactory;
0 20 1 context Lio/vertx/core/Context;
0 20 2 registerCloseHook Z
0 20 3 options Lio/vertx/mysqlclient/MySQLConnectOptions;
3 20 4 netClientOptions Lio/vertx/core/net/NetClientOptions;
MethodParameters:
Name Flags
context
registerCloseHook
options
private void close(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>);
descriptor: (Lio/vertx/core/Handler;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.netClient:Lio/vertx/core/net/NetClient;
invokeinterface io.vertx.core.net.NetClient.close:()V
1: aload 1
invokestatic io.vertx.core.Future.succeededFuture:()Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/mysqlclient/impl/MySQLConnectionFactory;
0 3 1 completionHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;>;
Signature: (Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;>;)V
MethodParameters:
Name Flags
completionHandler
void close();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.registerCloseHook:Z
ifeq 2
1: aload 0
getfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.context:Lio/vertx/core/Context;
aload 0
getfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.hook:Lio/vertx/core/Closeable;
invokeinterface io.vertx.core.Context.removeCloseHook:(Lio/vertx/core/Closeable;)Z
pop
2: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.netClient:Lio/vertx/core/net/NetClient;
invokeinterface io.vertx.core.net.NetClient.close:()V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/mysqlclient/impl/MySQLConnectionFactory;
public void connect(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.sqlclient.impl.Connection>>);
descriptor: (Lio/vertx/core/Handler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: invokestatic io.vertx.core.Promise.promise:()Lio/vertx/core/Promise;
astore 2
start local 2 1: aload 2
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
aload 0
aload 1
invokedynamic handle(Lio/vertx/mysqlclient/impl/MySQLConnectionFactory;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/mysqlclient/impl/MySQLConnectionFactory.lambda$1(Lio/vertx/core/Handler;Lio/vertx/core/AsyncResult;)V (7)
(Lio/vertx/core/AsyncResult;)V
invokeinterface io.vertx.core.Future.setHandler:(Lio/vertx/core/Handler;)Lio/vertx/core/Future;
pop
2: aload 0
getfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.netClient:Lio/vertx/core/net/NetClient;
aload 0
getfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.port:I
aload 0
getfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.host:Ljava/lang/String;
aload 2
invokeinterface io.vertx.core.net.NetClient.connect:(ILjava/lang/String;Lio/vertx/core/Handler;)Lio/vertx/core/net/NetClient;
pop
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/mysqlclient/impl/MySQLConnectionFactory;
0 4 1 handler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/sqlclient/impl/Connection;>;>;
1 4 2 promise Lio/vertx/core/Promise<Lio/vertx/core/net/NetSocket;>;
Signature: (Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/sqlclient/impl/Connection;>;>;)V
MethodParameters:
Name Flags
handler
private void lambda$1(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=7, locals=5, args_size=3
start local 0 start local 2 0: aload 2
invokeinterface io.vertx.core.AsyncResult.succeeded:()Z
ifeq 6
1: aload 2
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
checkcast io.vertx.core.impl.NetSocketInternal
astore 3
start local 3 2: new io.vertx.mysqlclient.impl.MySQLSocketConnection
dup
aload 3
aload 0
getfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.cachePreparedStatements:Z
aload 0
getfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.preparedStatementCacheSize:I
aload 0
getfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.preparedStatementCacheSqlLimit:I
aload 0
getfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.context:Lio/vertx/core/Context;
invokespecial io.vertx.mysqlclient.impl.MySQLSocketConnection.<init>:(Lio/vertx/core/impl/NetSocketInternal;ZIILio/vertx/core/Context;)V
astore 4
start local 4 3: aload 4
invokevirtual io.vertx.mysqlclient.impl.MySQLSocketConnection.init:()V
4: aload 4
aload 0
getfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.username:Ljava/lang/String;
aload 0
getfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.password:Ljava/lang/String;
aload 0
getfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.database:Ljava/lang/String;
aload 0
getfield io.vertx.mysqlclient.impl.MySQLConnectionFactory.properties:Ljava/util/Map;
aload 1
invokevirtual io.vertx.mysqlclient.impl.MySQLSocketConnection.sendStartupMessage:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Lio/vertx/core/Handler;)V
end local 4 end local 3 5: goto 7
6: StackMap locals:
StackMap stack:
aload 1
aload 2
invokeinterface io.vertx.core.AsyncResult.cause:()Ljava/lang/Throwable;
invokestatic io.vertx.core.Future.failedFuture:(Ljava/lang/Throwable;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
7: StackMap locals:
StackMap stack:
return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/vertx/mysqlclient/impl/MySQLConnectionFactory;
0 8 2 ar1 Lio/vertx/core/AsyncResult<Lio/vertx/core/net/NetSocket;>;
2 5 3 socket Lio/vertx/core/impl/NetSocketInternal;
3 5 4 conn Lio/vertx/mysqlclient/impl/MySQLSocketConnection;
}
SourceFile: "MySQLConnectionFactory.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles