Class ProxyConnectionFactoryProvider
java.lang.Object
io.r2dbc.proxy.ProxyConnectionFactoryProvider
- All Implemented Interfaces:
ConnectionFactoryProvider
An implementation of
ConnectionFactoryProvider for creating proxy ConnectionFactory.
This provider takes proxyListener parameter and its value can be:
- Fully qualified proxy listener class name
- Proxy listener
Class - Proxy listener instance
-
Collectionof above
- Author:
- Tadaya Tsuyukubo
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(ConnectionFactoryOptions connectionFactoryOptions) Create a new proxyConnectionFactoryfrom givenConnectionFactoryOptions.booleansupports(ConnectionFactoryOptions connectionFactoryOptions)
-
Field Details
-
PROXY_DRIVER
-
PROXY_LISTENERS
-
-
Constructor Details
-
ProxyConnectionFactoryProvider
public ProxyConnectionFactoryProvider()
-
-
Method Details
-
create
Create a new proxyConnectionFactoryfrom givenConnectionFactoryOptions.- Specified by:
createin interfaceConnectionFactoryProvider- Parameters:
connectionFactoryOptions- a collection ofConnectionFactoryOptions- Returns:
- the proxy
ConnectionFactory - Throws:
IllegalArgumentException- ifconnectionFactoryOptionsisnullIllegalStateException- if there is no value forConnectionFactoryOptions.PROTOCOLIllegalArgumentException- ifConnectionFactoryOptions.PROTOCOLhas invalid formatIllegalArgumentException- if delegatingConnectionFactorycannot be foundIllegalArgumentException- if specified proxyListener parameter class cannot be found or instantiatedIllegalArgumentException- if specified proxyListener parameter value is not a proxy listener class or instance
-
supports
- Specified by:
supportsin interfaceConnectionFactoryProvider
-
getDriver
- Specified by:
getDriverin interfaceConnectionFactoryProvider
-