Class PostgreSQLClientFactory
- java.lang.Object
-
- io.rxmicro.data.sql.r2dbc.postgresql.PostgreSQLClientFactory
-
public final class PostgreSQLClientFactory extends Object
Utility class that must be used to get an instance of theConnectionFactoryorConnectionPoolintegrated to the RxMicro framework.This utility class allows using additional features that
ConnectionFactoryorConnectionPoolis provided.- Since:
- 0.1
- Author:
- nedis
- See Also:
PostgreSQLConfig,PostgreSQLRepository
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.r2dbc.spi.ConnectionFactorygetPostgreSQLConnectionFactory()Returns the instance of theConnectionFactorythat is bound to config with the default namespacestatic io.r2dbc.spi.ConnectionFactorygetPostgreSQLConnectionFactory(String namespace)Returns the instance of theConnectionFactorythat is bound to config with the requested namespacestatic io.r2dbc.pool.ConnectionPoolgetPostgreSQLConnectionPool()Returns the instance of theConnectionPoolthat is bound to config with the default namespacestatic io.r2dbc.pool.ConnectionPoolgetPostgreSQLConnectionPool(String namespace)Returns the instance of theConnectionPoolthat is bound to config with the requested namespace
-
-
-
Method Detail
-
getPostgreSQLConnectionFactory
public static io.r2dbc.spi.ConnectionFactory getPostgreSQLConnectionFactory()
Returns the instance of theConnectionFactorythat 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 theConnectionFactorythat 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 theConnectionPoolthat 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 theConnectionPoolthat is bound to config with the requested namespace- Parameters:
namespace- the requested namespace- Returns:
- the instance of the
ConnectionPool
-
-