Class ProxyConfig.Builder
java.lang.Object
io.r2dbc.proxy.callback.ProxyConfig.Builder
- Enclosing class:
ProxyConfig
Builder for creating a
ProxyConfig.
For attributes not specified explicitly, default values are used.- Author:
- Tadaya Tsuyukubo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbindParameterConverter(BindParameterConverter bindParameterConverter) Sets theBindParameterConverter.build()Build aProxyConfig.SetClock.connectionIdManager(ConnectionIdManager connectionIdManager) Sets theConnectionIdManager.listener(ProxyExecutionListener listener) Add aProxyExecutionListener.proxyFactoryFactory(ProxyFactoryFactory proxyFactoryFactory) Sets theProxyFactoryFactory.resultRowConverter(ResultRowConverter resultRowConverter) Sets theResultRowConverter.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
listener
Add aProxyExecutionListener.- Parameters:
listener- a listener to add- Returns:
- builder
- Throws:
IllegalArgumentException- iflistenerisnull
-
connectionIdManager
Sets theConnectionIdManager.- Parameters:
connectionIdManager- connectionIdManager to be used- Returns:
- builder
- Throws:
IllegalArgumentException- ifconnectionIdManagerisnull
-
proxyFactoryFactory
Sets theProxyFactoryFactory.- Parameters:
proxyFactoryFactory- proxyFactoryFactory to be used- Returns:
- builder
- Throws:
IllegalArgumentException- ifproxyFactoryFactoryisnull
-
clock
SetClock.- Parameters:
clock- clock to be used- Returns:
- builder
- Throws:
IllegalArgumentException- ifclockisnull
-
bindParameterConverter
Sets theBindParameterConverter.- Parameters:
bindParameterConverter- bindParameterConverter to be used- Returns:
- builder
- Throws:
IllegalArgumentException- ifbindParameterConverterisnull
-
resultRowConverter
Sets theResultRowConverter.- Parameters:
resultRowConverter- resultRowConverter to be used- Returns:
- builder
- Throws:
IllegalArgumentException- ifresultRowConverterisnull- Since:
- 0.9.0
-
build
-