Class ProxyConnectionFactory
java.lang.Object
io.r2dbc.proxy.ProxyConnectionFactory
Entry point to create a proxy for the given
ConnectionFactory
.- Author:
- Tadaya Tsuyukubo
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder
(ConnectionFactory connectionFactory) Create a newProxyConnectionFactory.Builder
.builder
(ConnectionFactory connectionFactory, ProxyConfig proxyConfig) Create a newProxyConnectionFactory.Builder
.
-
Method Details
-
builder
Create a newProxyConnectionFactory.Builder
.- Parameters:
connectionFactory
- actualConnectionFactory
- Returns:
- builder
- Throws:
IllegalArgumentException
- ifconnectionFactory
isnull
-
builder
public static ProxyConnectionFactory.Builder builder(ConnectionFactory connectionFactory, ProxyConfig proxyConfig) Create a newProxyConnectionFactory.Builder
.- Parameters:
connectionFactory
- actualConnectionFactory
proxyConfig
-ProxyConfig
to use- Returns:
- builder
- Throws:
IllegalArgumentException
- ifconnectionFactory
isnull
IllegalArgumentException
- ifproxyConfig
isnull
-