public abstract class io.vertx.sqlclient.impl.SqlConnectionFactoryBase implements io.vertx.sqlclient.impl.ConnectionFactory
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: io.vertx.sqlclient.impl.SqlConnectionFactoryBase
super_class: java.lang.Object
{
protected final io.vertx.core.net.NetClient netClient;
descriptor: Lio/vertx/core/net/NetClient;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final io.vertx.core.impl.ContextInternal context;
descriptor: Lio/vertx/core/impl/ContextInternal;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final io.vertx.core.net.SocketAddress socketAddress;
descriptor: Lio/vertx/core/net/SocketAddress;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final java.lang.String username;
descriptor: Ljava/lang/String;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final java.lang.String password;
descriptor: Ljava/lang/String;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final java.lang.String database;
descriptor: Ljava/lang/String;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final java.util.Map<java.lang.String, java.lang.String> properties;
descriptor: Ljava/util/Map;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
protected final boolean cachePreparedStatements;
descriptor: Z
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final int preparedStatementCacheSize;
descriptor: I
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final java.util.function.Predicate<java.lang.String> preparedStatementCacheSqlFilter;
descriptor: Ljava/util/function/Predicate;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Ljava/util/function/Predicate<Ljava/lang/String;>;
protected final io.vertx.core.impl.CloseFuture clientCloseFuture;
descriptor: Lio/vertx/core/impl/CloseFuture;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
private final int reconnectAttempts;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long reconnectInterval;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
protected void <init>(io.vertx.core.impl.ContextInternal, io.vertx.sqlclient.SqlConnectOptions);
descriptor: (Lio/vertx/core/impl/ContextInternal;Lio/vertx/sqlclient/SqlConnectOptions;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new io.vertx.core.impl.CloseFuture
dup
invokespecial io.vertx.core.impl.CloseFuture.<init>:()V
putfield io.vertx.sqlclient.impl.SqlConnectionFactoryBase.clientCloseFuture:Lio/vertx/core/impl/CloseFuture;
2: aload 0
aload 1
putfield io.vertx.sqlclient.impl.SqlConnectionFactoryBase.context:Lio/vertx/core/impl/ContextInternal;
3: aload 0
aload 2
invokevirtual io.vertx.sqlclient.SqlConnectOptions.getSocketAddress:()Lio/vertx/core/net/SocketAddress;
putfield io.vertx.sqlclient.impl.SqlConnectionFactoryBase.socketAddress:Lio/vertx/core/net/SocketAddress;
4: aload 0
aload 2
invokevirtual io.vertx.sqlclient.SqlConnectOptions.getUser:()Ljava/lang/String;
putfield io.vertx.sqlclient.impl.SqlConnectionFactoryBase.username:Ljava/lang/String;
5: aload 0
aload 2
invokevirtual io.vertx.sqlclient.SqlConnectOptions.getPassword:()Ljava/lang/String;
putfield io.vertx.sqlclient.impl.SqlConnectionFactoryBase.password:Ljava/lang/String;
6: aload 0
aload 2
invokevirtual io.vertx.sqlclient.SqlConnectOptions.getDatabase:()Ljava/lang/String;
putfield io.vertx.sqlclient.impl.SqlConnectionFactoryBase.database:Ljava/lang/String;
7: aload 0
aload 2
invokevirtual io.vertx.sqlclient.SqlConnectOptions.getProperties:()Ljava/util/Map;
ifnonnull 8
aconst_null
goto 9
StackMap locals: io.vertx.sqlclient.impl.SqlConnectionFactoryBase io.vertx.core.impl.ContextInternal io.vertx.sqlclient.SqlConnectOptions
StackMap stack: io.vertx.sqlclient.impl.SqlConnectionFactoryBase
8: aload 2
invokevirtual io.vertx.sqlclient.SqlConnectOptions.getProperties:()Ljava/util/Map;
invokestatic java.util.Collections.unmodifiableMap:(Ljava/util/Map;)Ljava/util/Map;
StackMap locals: io.vertx.sqlclient.impl.SqlConnectionFactoryBase io.vertx.core.impl.ContextInternal io.vertx.sqlclient.SqlConnectOptions
StackMap stack: io.vertx.sqlclient.impl.SqlConnectionFactoryBase java.util.Map
9: putfield io.vertx.sqlclient.impl.SqlConnectionFactoryBase.properties:Ljava/util/Map;
10: aload 0
aload 2
invokevirtual io.vertx.sqlclient.SqlConnectOptions.getCachePreparedStatements:()Z
putfield io.vertx.sqlclient.impl.SqlConnectionFactoryBase.cachePreparedStatements:Z
11: aload 0
aload 2
invokevirtual io.vertx.sqlclient.SqlConnectOptions.getPreparedStatementCacheMaxSize:()I
putfield io.vertx.sqlclient.impl.SqlConnectionFactoryBase.preparedStatementCacheSize:I
12: aload 0
aload 2
invokevirtual io.vertx.sqlclient.SqlConnectOptions.getPreparedStatementCacheSqlFilter:()Ljava/util/function/Predicate;
putfield io.vertx.sqlclient.impl.SqlConnectionFactoryBase.preparedStatementCacheSqlFilter:Ljava/util/function/Predicate;
13: aload 0
aload 2
invokevirtual io.vertx.sqlclient.SqlConnectOptions.getReconnectAttempts:()I
putfield io.vertx.sqlclient.impl.SqlConnectionFactoryBase.reconnectAttempts:I
14: aload 0
aload 2
invokevirtual io.vertx.sqlclient.SqlConnectOptions.getReconnectInterval:()J
putfield io.vertx.sqlclient.impl.SqlConnectionFactoryBase.reconnectInterval:J
15: aload 0
aload 2
invokevirtual io.vertx.sqlclient.impl.SqlConnectionFactoryBase.initializeConfiguration:(Lio/vertx/sqlclient/SqlConnectOptions;)V
16: new io.vertx.core.net.NetClientOptions
dup
aload 2
invokespecial io.vertx.core.net.NetClientOptions.<init>:(Lio/vertx/core/net/NetClientOptions;)V
astore 3
start local 3 17: aload 0
aload 3
invokevirtual io.vertx.sqlclient.impl.SqlConnectionFactoryBase.configureNetClientOptions:(Lio/vertx/core/net/NetClientOptions;)V
18: aload 3
iconst_0
invokevirtual io.vertx.core.net.NetClientOptions.setReconnectAttempts:(I)Lio/vertx/core/net/NetClientOptions;
pop
19: aload 0
aload 1
invokeinterface io.vertx.core.impl.ContextInternal.owner:()Lio/vertx/core/impl/VertxInternal;
aload 3
aload 0
getfield io.vertx.sqlclient.impl.SqlConnectionFactoryBase.clientCloseFuture:Lio/vertx/core/impl/CloseFuture;
invokeinterface io.vertx.core.impl.VertxInternal.createNetClient:(Lio/vertx/core/net/NetClientOptions;Lio/vertx/core/impl/CloseFuture;)Lio/vertx/core/net/NetClient;
putfield io.vertx.sqlclient.impl.SqlConnectionFactoryBase.netClient:Lio/vertx/core/net/NetClient;
20: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lio/vertx/sqlclient/impl/SqlConnectionFactoryBase;
0 21 1 context Lio/vertx/core/impl/ContextInternal;
0 21 2 options Lio/vertx/sqlclient/SqlConnectOptions;
17 21 3 netClientOptions Lio/vertx/core/net/NetClientOptions;
MethodParameters:
Name Flags
context
options
public io.vertx.core.Future<io.vertx.sqlclient.impl.Connection> connect();
descriptor: ()Lio/vertx/core/Future;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield io.vertx.sqlclient.impl.SqlConnectionFactoryBase.context:Lio/vertx/core/impl/ContextInternal;
invokeinterface io.vertx.core.impl.ContextInternal.promise:()Lio/vertx/core/impl/future/PromiseInternal;
astore 1
start local 1 1: aload 0
getfield io.vertx.sqlclient.impl.SqlConnectionFactoryBase.context:Lio/vertx/core/impl/ContextInternal;
aload 1
aload 0
aload 1
invokedynamic handle(Lio/vertx/sqlclient/impl/SqlConnectionFactoryBase;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/sqlclient/impl/SqlConnectionFactoryBase.lambda$0(Lio/vertx/core/Promise;Lio/vertx/core/Promise;)V (7)
(Lio/vertx/core/Promise;)V
invokeinterface io.vertx.core.impl.ContextInternal.emit:(Ljava/lang/Object;Lio/vertx/core/Handler;)V
2: aload 1
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/sqlclient/impl/SqlConnectionFactoryBase;
1 3 1 promise Lio/vertx/core/Promise<Lio/vertx/sqlclient/impl/Connection;>;
Signature: ()Lio/vertx/core/Future<Lio/vertx/sqlclient/impl/Connection;>;
public void close(io.vertx.core.Promise<java.lang.Void>);
descriptor: (Lio/vertx/core/Promise;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.sqlclient.impl.SqlConnectionFactoryBase.clientCloseFuture:Lio/vertx/core/impl/CloseFuture;
aload 1
invokevirtual io.vertx.core.impl.CloseFuture.close:(Lio/vertx/core/Promise;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/sqlclient/impl/SqlConnectionFactoryBase;
0 2 1 promise Lio/vertx/core/Promise<Ljava/lang/Void;>;
Signature: (Lio/vertx/core/Promise<Ljava/lang/Void;>;)V
MethodParameters:
Name Flags
promise
private void doConnectWithRetry(io.vertx.core.Promise<io.vertx.sqlclient.impl.Connection>, );
descriptor: (Lio/vertx/core/Promise;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.vertx.sqlclient.impl.SqlConnectionFactoryBase.context:Lio/vertx/core/impl/ContextInternal;
invokeinterface io.vertx.core.impl.ContextInternal.promise:()Lio/vertx/core/impl/future/PromiseInternal;
astore 3
start local 3 1: aload 3
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
aload 0
aload 1
iload 2
invokedynamic handle(Lio/vertx/sqlclient/impl/SqlConnectionFactoryBase;Lio/vertx/core/Promise;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/sqlclient/impl/SqlConnectionFactoryBase.lambda$1(Lio/vertx/core/Promise;ILio/vertx/core/AsyncResult;)V (7)
(Lio/vertx/core/AsyncResult;)V
invokeinterface io.vertx.core.Future.onComplete:(Lio/vertx/core/Handler;)Lio/vertx/core/Future;
pop
2: aload 0
aload 3
invokevirtual io.vertx.sqlclient.impl.SqlConnectionFactoryBase.doConnectInternal:(Lio/vertx/core/Promise;)V
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/sqlclient/impl/SqlConnectionFactoryBase;
0 4 1 promise Lio/vertx/core/Promise<Lio/vertx/sqlclient/impl/Connection;>;
0 4 2 remainingAttempts I
1 4 3 promise0 Lio/vertx/core/Promise<Lio/vertx/sqlclient/impl/Connection;>;
Signature: (Lio/vertx/core/Promise<Lio/vertx/sqlclient/impl/Connection;>;I)V
MethodParameters:
Name Flags
promise
remainingAttempts
protected abstract void initializeConfiguration(io.vertx.sqlclient.SqlConnectOptions);
descriptor: (Lio/vertx/sqlclient/SqlConnectOptions;)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
MethodParameters:
Name Flags
options
protected abstract void configureNetClientOptions(io.vertx.core.net.NetClientOptions);
descriptor: (Lio/vertx/core/net/NetClientOptions;)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
MethodParameters:
Name Flags
netClientOptions
protected abstract void doConnectInternal(io.vertx.core.Promise<io.vertx.sqlclient.impl.Connection>);
descriptor: (Lio/vertx/core/Promise;)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Signature: (Lio/vertx/core/Promise<Lio/vertx/sqlclient/impl/Connection;>;)V
MethodParameters:
Name Flags
promise
private void lambda$0(io.vertx.core.Promise, io.vertx.core.Promise);
descriptor: (Lio/vertx/core/Promise;Lio/vertx/core/Promise;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 2 0: aload 0
aload 1
aload 0
getfield io.vertx.sqlclient.impl.SqlConnectionFactoryBase.reconnectAttempts:I
invokevirtual io.vertx.sqlclient.impl.SqlConnectionFactoryBase.doConnectWithRetry:(Lio/vertx/core/Promise;I)V
return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/sqlclient/impl/SqlConnectionFactoryBase;
0 1 2 p Lio/vertx/core/Promise<Lio/vertx/sqlclient/impl/Connection;>;
private void lambda$1(io.vertx.core.Promise, int, io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/core/Promise;ILio/vertx/core/AsyncResult;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 3 0: aload 3
invokeinterface io.vertx.core.AsyncResult.succeeded:()Z
ifeq 3
1: aload 1
aload 3
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
checkcast io.vertx.sqlclient.impl.Connection
invokeinterface io.vertx.core.Promise.complete:(Ljava/lang/Object;)V
2: goto 7
3: StackMap locals:
StackMap stack:
iload 2
iflt 6
4: aload 0
getfield io.vertx.sqlclient.impl.SqlConnectionFactoryBase.context:Lio/vertx/core/impl/ContextInternal;
invokeinterface io.vertx.core.impl.ContextInternal.owner:()Lio/vertx/core/impl/VertxInternal;
aload 0
getfield io.vertx.sqlclient.impl.SqlConnectionFactoryBase.reconnectInterval:J
aload 0
aload 1
iload 2
invokedynamic handle(Lio/vertx/sqlclient/impl/SqlConnectionFactoryBase;Lio/vertx/core/Promise;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/sqlclient/impl/SqlConnectionFactoryBase.lambda$2(Lio/vertx/core/Promise;ILjava/lang/Long;)V (7)
(Ljava/lang/Long;)V
invokeinterface io.vertx.core.impl.VertxInternal.setTimer:(JLio/vertx/core/Handler;)J
pop2
5: goto 7
6: StackMap locals:
StackMap stack:
aload 1
aload 3
invokeinterface io.vertx.core.AsyncResult.cause:()Ljava/lang/Throwable;
invokeinterface io.vertx.core.Promise.fail:(Ljava/lang/Throwable;)V
7: StackMap locals:
StackMap stack:
return
end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/vertx/sqlclient/impl/SqlConnectionFactoryBase;
0 8 3 ar Lio/vertx/core/AsyncResult<Lio/vertx/sqlclient/impl/Connection;>;
private void lambda$2(io.vertx.core.Promise, int, java.lang.Long);
descriptor: (Lio/vertx/core/Promise;ILjava/lang/Long;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 3 0: aload 0
aload 1
iload 2
iconst_1
isub
invokevirtual io.vertx.sqlclient.impl.SqlConnectionFactoryBase.doConnectWithRetry:(Lio/vertx/core/Promise;I)V
1: return
end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/sqlclient/impl/SqlConnectionFactoryBase;
0 2 3 id Ljava/lang/Long;
}
SourceFile: "SqlConnectionFactoryBase.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles