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
- iflistener
isnull
-
connectionIdManager
SetConnectionIdManager
.- Parameters:
connectionIdManager
- connectionIdManager to be used- Returns:
- builder
- Throws:
IllegalArgumentException
- ifconnectionIdManager
isnull
-
proxyFactoryFactory
SetProxyFactoryFactory
.- Parameters:
proxyFactoryFactory
- proxyFactoryFactory to be used- Returns:
- builder
- Throws:
IllegalArgumentException
- ifproxyFactoryFactory
isnull
-
clock
SetClock
.- Parameters:
clock
- clock to be used- Returns:
- builder
- Throws:
IllegalArgumentException
- ifclock
isnull
-
bindParameterConverter
- Parameters:
bindParameterConverter
- bindParameterConverter to be used- Returns:
- builder
- Throws:
IllegalArgumentException
- ifbindParameterConverter
isnull
-
resultRowConverter
SetResultRowConverter
.- Parameters:
resultRowConverter
- resultRowConverter to be used- Returns:
- builder
- Throws:
IllegalArgumentException
- ifresultRowConverter
isnull
- Since:
- 0.9.0
-
build
-