Class PostgreSQLClientFactory


  • public final class PostgreSQLClientFactory
    extends Object
    Utility class that must be used to get an instance of the ConnectionFactory or ConnectionPool integrated to the RxMicro framework.

    This utility class allows using additional features that ConnectionFactory or ConnectionPool is provided.

    Since:
    0.1
    Author:
    nedis
    See Also:
    PostgreSQLConfig, PostgreSQLRepository
    • Method Detail

      • getPostgreSQLConnectionFactory

        public static io.r2dbc.spi.ConnectionFactory getPostgreSQLConnectionFactory()
        Returns the instance of the ConnectionFactory that is bound to config with the default namespace.
        Returns:
        the instance of the ConnectionFactory
      • getPostgreSQLConnectionFactory

        public static io.r2dbc.spi.ConnectionFactory getPostgreSQLConnectionFactory​(String namespace)
        Returns the instance of the ConnectionFactory that is bound to config with the requested namespace.
        Parameters:
        namespace - the requested namespace
        Returns:
        the instance of the ConnectionFactory
      • getPostgreSQLConnectionPool

        public static io.r2dbc.pool.ConnectionPool getPostgreSQLConnectionPool()
        Returns the instance of the ConnectionPool that is bound to config with the default namespace.
        Returns:
        the instance of the ConnectionPool
      • getPostgreSQLConnectionPool

        public static io.r2dbc.pool.ConnectionPool getPostgreSQLConnectionPool​(String namespace)
        Returns the instance of the ConnectionPool that is bound to config with the requested namespace.
        Parameters:
        namespace - the requested namespace
        Returns:
        the instance of the ConnectionPool