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 theConnectionFactory
orConnectionPool
integrated to the RxMicro framework.This utility class allows using additional features that
ConnectionFactory
orConnectionPool
is 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.ConnectionFactory
getPostgreSQLConnectionFactory()
Returns the instance of theConnectionFactory
that is bound to config with the default namespace.static io.r2dbc.spi.ConnectionFactory
getPostgreSQLConnectionFactory(String namespace)
Returns the instance of theConnectionFactory
that is bound to config with the requested namespace.static io.r2dbc.pool.ConnectionPool
getPostgreSQLConnectionPool()
Returns the instance of theConnectionPool
that is bound to config with the default namespace.static io.r2dbc.pool.ConnectionPool
getPostgreSQLConnectionPool(String namespace)
Returns the instance of theConnectionPool
that is bound to config with the requested namespace.
-
-
-
Method Detail
-
getPostgreSQLConnectionFactory
public static io.r2dbc.spi.ConnectionFactory getPostgreSQLConnectionFactory()
Returns the instance of theConnectionFactory
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 theConnectionFactory
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 theConnectionPool
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 theConnectionPool
that is bound to config with the requested namespace.- Parameters:
namespace
- the requested namespace- Returns:
- the instance of the
ConnectionPool
-
-