Class ProxyConfig.Builder
java.lang.Object
io.r2dbc.proxy.callback.ProxyConfig.Builder
- Enclosing class:
ProxyConfig
Builder to create a
ProxyConfig.
For attributes that are not specified, default values will be used.- Author:
- Tadaya Tsuyukubo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbindParameterConverter(BindParameterConverter bindParameterConverter) build()Build aProxyConfig.SetClock.connectionIdManager(ConnectionIdManager connectionIdManager) SetConnectionIdManager.listener(ProxyExecutionListener listener) Add aProxyExecutionListener.proxyFactoryFactory(ProxyFactoryFactory proxyFactoryFactory) SetProxyFactoryFactory.resultRowConverter(ResultRowConverter resultRowConverter) SetResultRowConverter.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
listener
Add aProxyExecutionListener.- Parameters:
listener- a listener to add- Returns:
- builder
- Throws:
IllegalArgumentException- iflistenerisnull
-
connectionIdManager
SetConnectionIdManager.- Parameters:
connectionIdManager- connectionIdManager to be used- Returns:
- builder
- Throws:
IllegalArgumentException- ifconnectionIdManagerisnull
-
proxyFactoryFactory
SetProxyFactoryFactory.- 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
- Parameters:
bindParameterConverter- bindParameterConverter to be used- Returns:
- builder
- Throws:
IllegalArgumentException- ifbindParameterConverterisnull
-
resultRowConverter
SetResultRowConverter.- Parameters:
resultRowConverter- resultRowConverter to be used- Returns:
- builder
- Throws:
IllegalArgumentException- ifresultRowConverterisnull- Since:
- 0.9.0
-
build
-