public class ProxyConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ProxyConfig.Builder
Builder to create a
ProxyConfig. |
| Constructor and Description |
|---|
ProxyConfig() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ProxyExecutionListener listener)
Register
ProxyExecutionListener. |
static ProxyConfig.Builder |
builder()
Create a new
ProxyConfig.Builder. |
BindParameterConverter |
getBindParameterConverter()
|
Clock |
getClock()
Get
Clock. |
ConnectionIdManager |
getConnectionIdManager()
Get
ConnectionIdManager. |
CompositeProxyExecutionListener |
getListeners()
Returns
CompositeProxyExecutionListener that contains registered ProxyExecutionListener. |
ProxyFactory |
getProxyFactory()
Get
ProxyFactory which is generated from the specified ProxyFactoryFactory. |
void |
setBindParameterConverter(BindParameterConverter bindParameterConverter)
|
void |
setClock(Clock clock)
Set
Clock to use to calculate the elapsed time. |
void |
setConnectionIdManager(ConnectionIdManager connectionIdManager)
Set
ConnectionIdManager. |
void |
setProxyFactoryFactory(ProxyFactoryFactory proxyFactoryFactory)
Set
ProxyFactoryFactory. |
public static ProxyConfig.Builder builder()
ProxyConfig.Builder.public void setProxyFactoryFactory(ProxyFactoryFactory proxyFactoryFactory)
ProxyFactoryFactory.
When ProxyFactoryFactory is set, ProxyFactoryFactory.create(ProxyConfig) method
is called once to generate ProxyFactory. The generated ProxyFactory instance is
always returned by getProxyFactory() unless this method is called to set a new
ProxyFactoryFactory.proxyFactoryFactory - factory for ProxyFactoryIllegalArgumentException - if proxyFactoryFactory is nullpublic ProxyFactory getProxyFactory()
ProxyFactory which is generated from the specified ProxyFactoryFactory.
Always same instance of ProxyFactory is returned.public CompositeProxyExecutionListener getListeners()
CompositeProxyExecutionListener that contains registered ProxyExecutionListener.public void addListener(ProxyExecutionListener listener)
ProxyExecutionListener.listener - a listener to registerIllegalArgumentException - if proxyFactoryFactory is nullpublic ConnectionIdManager getConnectionIdManager()
ConnectionIdManager.public void setConnectionIdManager(ConnectionIdManager connectionIdManager)
ConnectionIdManager.connectionIdManager - connection id managerIllegalArgumentException - if connectionIdManager is nullpublic void setClock(Clock clock)
Clock to use to calculate the elapsed time.clock - clock to useIllegalArgumentException - if clock is nullCallbackHandlerSupportpublic BindParameterConverter getBindParameterConverter()
public void setBindParameterConverter(BindParameterConverter bindParameterConverter)
bindParameterConverter - bind parameter converterIllegalArgumentException - if bindParameterConverter is nullCopyright © 2020. All rights reserved.