public class DefaultRsfSettings extends SettingsWrap implements RsfSettings
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.slf4j.Logger |
logger |
DefaultCharset, DefaultNameSpace| 构造器和说明 |
|---|
DefaultRsfSettings(Settings settings) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getBindAddress()
获取本地服务绑定地址
|
InterAddress |
getBindAddressSet(String protocolName)
获取本地服务绑定地址
|
RsfOptionSet |
getClientOption()
获取配置的客户端选项
|
int |
getConnectTimeout()
客户端发起一个连接请求所允许的最大耗时(单位毫秒)
|
String |
getDefaultGroup()
获取默认超时时间。
|
String |
getDefaultProtocol()
获取默认传输协议
|
String |
getDefaultSerializeType()
获取默认超时时间。
|
int |
getDefaultTimeout()
获取默认超时时间。
|
String |
getDefaultVersion()
获取默认超时时间。
|
long |
getDiskCacheTimeInterval()
每次缓存地址本到磁盘时的时间间隔(单位:毫秒)默认:1小时
|
long |
getInvalidWaitTime()
获取地址失效之后,等待重新尝试连接的时间(毫秒)。
|
int |
getMaximumRequest()
最大并发请求数
|
String |
getProtocolConfigKey(String protocolName)
获取协议配置节点名
|
Set<String> |
getProtocos()
可使用的协议名集合
|
long |
getQueueKeepAliveTime()
(SECONDS),when the number of threads is greater than the core, this is the maximum time that excess idle threads will wait for new tasks before terminating.
|
int |
getQueueMaxPoolSize()
the maximum number of threads to allow in the pool.
|
int |
getQueueMaxSize()
处理任务队列的最大大小,作为服务端当队列满了之后所有新进来的请求都会被回应 ChooseOther
|
int |
getQueueMinPoolSize()
the number of threads to keep in the pool, even if they are idle, unless allowCoreThreadTimeOut is set.
|
long |
getRefreshCacheTime()
自动刷新地址本缓存的时间,默认6分钟。
|
int |
getRequestTimeout()
客户端请求超时时间
|
SendLimitPolicy |
getSendLimitPolicy()
并发调用请求限制策略,当并发调用达到限制值后的策略(Reject 抛出异常,WaitSecond 等待1秒重试)
|
RsfOptionSet |
getServerOption()
获取配置的服务器端选项
|
String |
getUnitName()
获取本机所属单元
|
boolean |
isAutomaticOnline()
应用自动上线
|
boolean |
islocalDiskCache()
启用磁盘地址本缓存,在refreshCacheTime期间每隔1小时自动写入一次。
|
void |
refresh() |
void |
refreshRsfConfig()
重新加载Rsf配置
|
addSetting, addSetting, getBoolean, getBoolean, getBooleanArray, getBooleanArray, getChar, getChar, getCharArray, getCharArray, getDate, getDate, getDate, getDate, getDate, getDate, getDateArray, getDateArray, getDateArray, getDateArray, getDateArray, getDateArray, getDirectoryPath, getDirectoryPath, getDirectoryPathArray, getDirectoryPathArray, getDouble, getDouble, getDoubleArray, getDoubleArray, getEnum, getEnum, getEnumArray, getEnumArray, getFilePath, getFilePath, getFilePathArray, getFilePathArray, getFloat, getFloat, getFloatArray, getFloatArray, getInteger, getInteger, getIntegerArray, getIntegerArray, getLong, getLong, getLongArray, getLongArray, getNode, getNodeArray, getSettingArray, getSettings, getSettings, getShort, getShort, getShortArray, getShortArray, getString, getString, getStringArray, getStringArray, removeSetting, removeSetting, setSetting, setSetting, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSetting, addSetting, getBoolean, getBoolean, getBooleanArray, getBooleanArray, getChar, getChar, getCharArray, getCharArray, getDate, getDate, getDate, getDate, getDate, getDate, getDateArray, getDateArray, getDateArray, getDateArray, getDateArray, getDateArray, getDirectoryPath, getDirectoryPath, getDirectoryPathArray, getDirectoryPathArray, getDouble, getDouble, getDoubleArray, getDoubleArray, getEnum, getEnum, getEnumArray, getEnumArray, getFilePath, getFilePath, getFilePathArray, getFilePathArray, getFloat, getFloat, getFloatArray, getFloatArray, getInteger, getInteger, getIntegerArray, getIntegerArray, getLong, getLong, getLongArray, getLongArray, getNode, getNodeArray, getSettingArray, getSettings, getShort, getShort, getShortArray, getShortArray, getString, getString, getStringArray, getStringArray, removeSetting, removeSetting, setSetting, setSettingpublic DefaultRsfSettings(Settings settings) throws IOException
IOExceptionpublic int getDefaultTimeout()
RsfSettingsgetDefaultTimeout 在接口中 RsfSettingspublic RsfOptionSet getServerOption()
RsfSettingsgetServerOption 在接口中 RsfSettingspublic RsfOptionSet getClientOption()
RsfSettingsgetClientOption 在接口中 RsfSettingspublic String getDefaultGroup()
RsfSettingsgetDefaultGroup 在接口中 RsfSettingspublic String getDefaultVersion()
RsfSettingsgetDefaultVersion 在接口中 RsfSettingspublic String getDefaultSerializeType()
RsfSettingsgetDefaultSerializeType 在接口中 RsfSettingspublic int getQueueMaxSize()
RsfSettingsgetQueueMaxSize 在接口中 RsfSettingspublic int getQueueMinPoolSize()
RsfSettingsgetQueueMinPoolSize 在接口中 RsfSettingspublic int getQueueMaxPoolSize()
RsfSettingsgetQueueMaxPoolSize 在接口中 RsfSettingspublic long getQueueKeepAliveTime()
RsfSettingsgetQueueKeepAliveTime 在接口中 RsfSettingspublic int getRequestTimeout()
RsfSettingsgetRequestTimeout 在接口中 RsfSettingspublic int getMaximumRequest()
RsfSettingsgetMaximumRequest 在接口中 RsfSettingspublic SendLimitPolicy getSendLimitPolicy()
RsfSettingsgetSendLimitPolicy 在接口中 RsfSettingspublic int getConnectTimeout()
RsfSettingsgetConnectTimeout 在接口中 RsfSettingspublic String getBindAddress()
RsfSettingsgetBindAddress 在接口中 RsfSettingspublic String getDefaultProtocol()
RsfSettingsgetDefaultProtocol 在接口中 RsfSettingspublic Set<String> getProtocos()
RsfSettingsgetProtocos 在接口中 RsfSettingspublic InterAddress getBindAddressSet(String protocolName)
RsfSettingsgetBindAddressSet 在接口中 RsfSettingspublic String getProtocolConfigKey(String protocolName)
RsfSettingsgetProtocolConfigKey 在接口中 RsfSettingspublic String getUnitName()
RsfSettingsgetUnitName 在接口中 RsfSettingspublic long getInvalidWaitTime()
RsfSettingsgetInvalidWaitTime 在接口中 RsfSettingspublic long getRefreshCacheTime()
RsfSettingsgetRefreshCacheTime 在接口中 RsfSettingspublic long getDiskCacheTimeInterval()
RsfSettingsgetDiskCacheTimeInterval 在接口中 RsfSettingspublic boolean islocalDiskCache()
RsfSettingsislocalDiskCache 在接口中 RsfSettingspublic boolean isAutomaticOnline()
RsfSettingsisAutomaticOnline 在接口中 RsfSettingspublic void refresh()
throws IOException
refresh 在接口中 Settingsrefresh 在类中 SettingsWrapIOExceptionpublic void refreshRsfConfig()
throws IOException
RsfSettingsrefreshRsfConfig 在接口中 RsfSettingsIOExceptionCopyright © 2020–2021. All rights reserved.