public static final class ProxyConfig.Builder extends Object
ProxyConfig
.
For attributes that are not specified, default values will be used.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ProxyConfig.Builder |
bindParameterConverter(BindParameterConverter bindParameterConverter)
|
ProxyConfig |
build()
Build a
ProxyConfig . |
ProxyConfig.Builder |
clock(Clock clock)
Set
Clock . |
ProxyConfig.Builder |
connectionIdManager(ConnectionIdManager connectionIdManager)
Set
ConnectionIdManager . |
ProxyConfig.Builder |
listener(ProxyExecutionListener listener)
Add a
ProxyExecutionListener . |
ProxyConfig.Builder |
proxyFactoryFactory(ProxyFactoryFactory proxyFactoryFactory)
Set
ProxyFactoryFactory . |
ProxyConfig.Builder |
resultRowConverter(ResultRowConverter resultRowConverter)
Set
ResultRowConverter . |
public ProxyConfig.Builder listener(ProxyExecutionListener listener)
ProxyExecutionListener
.listener
- a listener to addIllegalArgumentException
- if listener
is null
public ProxyConfig.Builder connectionIdManager(ConnectionIdManager connectionIdManager)
ConnectionIdManager
.connectionIdManager
- connectionIdManager to be usedIllegalArgumentException
- if connectionIdManager
is null
public ProxyConfig.Builder proxyFactoryFactory(ProxyFactoryFactory proxyFactoryFactory)
ProxyFactoryFactory
.proxyFactoryFactory
- proxyFactoryFactory to be usedIllegalArgumentException
- if proxyFactoryFactory
is null
public ProxyConfig.Builder clock(Clock clock)
Clock
.clock
- clock to be usedIllegalArgumentException
- if clock
is null
public ProxyConfig.Builder bindParameterConverter(BindParameterConverter bindParameterConverter)
bindParameterConverter
- bindParameterConverter to be usedIllegalArgumentException
- if bindParameterConverter
is null
public ProxyConfig.Builder resultRowConverter(ResultRowConverter resultRowConverter)
ResultRowConverter
.resultRowConverter
- resultRowConverter to be usedIllegalArgumentException
- if resultRowConverter
is null
public ProxyConfig build()
ProxyConfig
.ProxyConfig
Copyright © 2024. All rights reserved.