Class MSSQLPool


  • public class MSSQLPool
    extends Pool
    A of SQL Server connections.

    NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.

    • Constructor Detail

      • MSSQLPool

        public MSSQLPool​(io.vertx.mssqlclient.MSSQLPool delegate)
      • MSSQLPool

        public MSSQLPool​(Object delegate)
    • Method Detail

      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class Pool
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Pool
      • getDelegate

        public io.vertx.mssqlclient.MSSQLPool getDelegate()
        Overrides:
        getDelegate in class Pool
      • pool

        public static MSSQLPool pool​(String connectionUri,
                                     io.vertx.sqlclient.PoolOptions options)
        Like pool(java.lang.String) with database built from connectionUri.
        Parameters:
        connectionUri -
        options -
        Returns:
      • pool

        public static MSSQLPool pool​(Vertx vertx,
                                     String connectionUri,
                                     io.vertx.sqlclient.PoolOptions options)
        Like pool(java.lang.String) with database built from connectionUri.
        Parameters:
        vertx -
        connectionUri -
        options -
        Returns:
      • pool

        public static MSSQLPool pool​(io.vertx.mssqlclient.MSSQLConnectOptions database,
                                     io.vertx.sqlclient.PoolOptions options)
        Create a connection pool to the SQL server database configured with the given options.
        Parameters:
        database - the options for the connection
        options - the options for creating the pool
        Returns:
        the connection pool
      • pool

        public static MSSQLPool pool​(Vertx vertx,
                                     io.vertx.mssqlclient.MSSQLConnectOptions database,
                                     io.vertx.sqlclient.PoolOptions options)
        Like pool(java.lang.String) with a specific instance.
        Parameters:
        vertx -
        database -
        options -
        Returns:
      • pool

        public static MSSQLPool pool​(List<io.vertx.mssqlclient.MSSQLConnectOptions> databases,
                                     io.vertx.sqlclient.PoolOptions options)
        Create a connection pool to the SQL Server databases with round-robin selection. Round-robin is applied when a new connection is created by the pool.
        Parameters:
        databases - the list of databases
        options - the options for creating the pool
        Returns:
        the connection pool
      • pool

        public static MSSQLPool pool​(Vertx vertx,
                                     List<io.vertx.mssqlclient.MSSQLConnectOptions> databases,
                                     io.vertx.sqlclient.PoolOptions options)
        Like pool(java.lang.String) with a specific instance.
        Parameters:
        vertx -
        databases -
        options -
        Returns:
      • connectionProvider

        public MSSQLPool connectionProvider​(Function<Context,​io.vertx.core.Future<SqlConnection>> provider)
        Description copied from class: Pool
        Replace the default pool connection provider, the new provider returns a future connection for a given .

        A ConnectionFactory can be used as connection provider.

        Overrides:
        connectionProvider in class Pool
        Parameters:
        provider - the new connection provider
        Returns:
        a reference to this, so the API can be used fluently
      • pool

        public static MSSQLPool pool​(Supplier<io.vertx.core.Future<io.vertx.mssqlclient.MSSQLConnectOptions>> databases,
                                     io.vertx.sqlclient.PoolOptions options)
        Create a connection pool to the SQL Server databases. The supplier is called to provide the options when a new connection is created by the pool.
        Parameters:
        databases - the databases supplier
        options - the options for creating the pool
        Returns:
        the connection pool
      • pool

        public static MSSQLPool pool​(Vertx vertx,
                                     Supplier<io.vertx.core.Future<io.vertx.mssqlclient.MSSQLConnectOptions>> databases,
                                     io.vertx.sqlclient.PoolOptions options)
        Like pool(java.lang.String) with a specific instance.
        Parameters:
        vertx -
        databases -
        options -
        Returns:
      • newInstance

        public static MSSQLPool newInstance​(io.vertx.mssqlclient.MSSQLPool arg)