io.vertx.sqlclient.spi

## Interface ConnectionFactory

- All Superinterfaces:
    Closeable

      public interface ConnectionFactory
      extends Closeable

  A connection factory, can be obtained from `Driver.createConnectionFactory(io.vertx.core.Vertx, io.vertx.sqlclient.SqlConnectOptions)`

- - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `Future<SqlConnection>` | `connect(Context context)` Create a connection using the given `context`.
    `static ConnectionFactory` | `roundRobinSelector(List<ConnectionFactory> factories)`

    - ### Methods inherited from interface io.vertx.core.Closeable

      `close`

- - ### Method Detail

    - #### roundRobinSelector

          static ConnectionFactory roundRobinSelector(List<ConnectionFactory> factories)

      Returns:
        a connection factory that connects with a round-robin policy

    - #### connect

          Future<SqlConnection> connect(Context context)

      Create a connection using the given `context`.
      Parameters:
        `context` - the context
      Returns:
        the future connection

Copyright © 2022 Eclipse. All rights reserved.