public class ClientConfig extends ConfigBase<ClientConfig>
charset, codecThreads, exchangeThreads, idleTimeout, ioThreads, maxUdpSize, readBufferSize, requestTimeout, streamTimeout, writeBufferSize| 构造器和说明 |
|---|
ClientConfig(String url) |
| 限定符和类型 | 方法和说明 |
|---|---|
ClientConfig |
autoReconnect(boolean autoReconnect)
配置是否自动重链
|
ClientConfig |
connectTimeout(long connectTimeout)
配置连接超时(单位毫秒)
|
long |
getConnectTimeout()
获取连接超时(单位毫秒)
|
long |
getHeartbeatInterval()
获取心跳间隔(单位毫秒)
|
String |
getHost()
获取连接主机
|
String |
getLinkUrl()
获取链接地址
|
Map<String,String> |
getMetaMap()
获取连接元信息字典
|
int |
getPort()
获取连接端口
|
String |
getSchema()
获取协议架构(用于查找供应者)
|
String |
getUrl()
获取连接地址
|
ClientConfig |
heartbeatInterval(long heartbeatInterval)
配置心跳间隔(单位毫秒)
|
ClientConfig |
idleTimeout(int idleTimeout)
配置连接空闲超时
|
boolean |
isAutoReconnect()
获取是否自动重链
|
ClientConfig |
metaPut(String name,
String val)
配置连接元信息
|
String |
toString() |
charset, clientMode, codecThreads, exchangeExecutor, exchangeThreads, fragmentHandler, fragmentSize, genId, getCharset, getCodec, getCodecThreads, getExchangeExecutor, getExchangeThreads, getFragmentHandler, getFragmentSize, getIdleTimeout, getIoThreads, getMaxUdpSize, getReadBufferSize, getRequestTimeout, getRoleName, getSslContext, getStreamManger, getStreamTimeout, getWriteBufferSize, idGenerator, ioThreads, isNolockSend, isSerialSend, maxUdpSize, nolockSend, readBufferSize, requestTimeout, serialSend, sslContext, streamTimeout, writeBufferSizepublic ClientConfig(String url)
public String getLinkUrl()
public String getUrl()
public String getSchema()
public String getHost()
public int getPort()
public ClientConfig metaPut(String name, String val)
public long getHeartbeatInterval()
public ClientConfig heartbeatInterval(long heartbeatInterval)
public long getConnectTimeout()
public ClientConfig connectTimeout(long connectTimeout)
public boolean isAutoReconnect()
public ClientConfig autoReconnect(boolean autoReconnect)
public ClientConfig idleTimeout(int idleTimeout)
ConfigBaseidleTimeout 在类中 ConfigBase<ClientConfig>Copyright © 2024. All rights reserved.