Package io.vertx.sqlclient.spi
Interface ConnectionFactory<C extends SqlConnectOptions>
-
- All Superinterfaces:
Closeable
public interface ConnectionFactory<C extends SqlConnectOptions> extends Closeable
A connection factory, can be obtained fromDriver.createConnectionFactory(io.vertx.core.Vertx, io.vertx.core.net.NetClientOptions)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Future<SqlConnection>
connect(Context context, C options)
Create a connection using the givencontext
.default Future<SqlConnection>
connect(Context context, Future<C> fut)
-
-
-
Method Detail
-
connect
default Future<SqlConnection> connect(Context context, Future<C> fut)
-
connect
Future<SqlConnection> connect(Context context, C options)
Create a connection using the givencontext
.- Parameters:
context
- the context- Returns:
- the future connection
-
-