public interface RsfSettings extends Settings
DefaultCharset, DefaultNameSpace| 限定符和类型 | 方法和说明 |
|---|---|
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 |
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, getShort, getShort, getShortArray, getShortArray, getString, getString, getStringArray, getStringArray, refresh, removeSetting, removeSetting, setSetting, setSettingint getDefaultTimeout()
String getDefaultGroup()
String getDefaultVersion()
String getDefaultSerializeType()
RsfOptionSet getServerOption()
RsfOptionSet getClientOption()
int getQueueMaxSize()
int getQueueMinPoolSize()
int getQueueMaxPoolSize()
long getQueueKeepAliveTime()
int getRequestTimeout()
int getMaximumRequest()
SendLimitPolicy getSendLimitPolicy()
int getConnectTimeout()
String getBindAddress()
String getDefaultProtocol()
InterAddress getBindAddressSet(String protocolName)
String getUnitName()
long getInvalidWaitTime()
long getRefreshCacheTime()
long getDiskCacheTimeInterval()
boolean islocalDiskCache()
boolean isAutomaticOnline()
void refreshRsfConfig()
throws IOException
IOExceptionCopyright © 2020–2021. All rights reserved.