类 DefaultGrpcClientConfig.Builder
java.lang.Object
com.alibaba.nacos.common.remote.client.grpc.DefaultGrpcClientConfig.Builder
-
方法概要
修饰符和类型方法说明build()build GrpcClientConfig.buildClusterFromProperties(Properties properties) buildSdkFromProperties(Properties properties) fromProperties(Properties properties, RpcClientTlsConfig tlsConfig) Set config from properties.setCapabilityNegotiationTimeout(long capabilityNegotiationTimeout) setChannelKeepAlive(int channelKeepAlive) set channelKeepAlive.setChannelKeepAliveTimeout(int channelKeepAliveTimeout) set channelKeepAlive.setConnectionKeepAlive(long connectionKeepAlive) set connectionKeepAlive.setHealthCheckRetryTimes(int healthCheckRetryTimes) set healthCheckRetryTimes.setHealthCheckTimeOut(long healthCheckTimeOut) set healthCheckTimeOut.set labels.setMaxInboundMessageSize(int maxInboundMessageSize) set maxInboundMessageSize.set client name.setRetryTimes(int retryTimes) set retryTimes.setServerCheckTimeOut(Long serverCheckTimeOut) set serverCheckTimeOut.setThreadPoolCoreSize(Integer threadPoolCoreSize) set threadPoolCoreSize.setThreadPoolKeepAlive(Long threadPoolKeepAlive) set threadPoolKeepAlive.setThreadPoolMaxSize(Integer threadPoolMaxSize) set threadPoolMaxSize.setThreadPoolQueueSize(int threadPoolQueueSize) set threadPoolQueueSize.setTimeOutMills(long timeOutMills) set timeOutMills.setTlsConfig(RpcClientTlsConfig tlsConfig) set tlsConfig.
-
方法详细资料
-
buildSdkFromProperties
-
buildClusterFromProperties
-
fromProperties
public DefaultGrpcClientConfig.Builder fromProperties(Properties properties, RpcClientTlsConfig tlsConfig) Set config from properties.- 参数:
properties- properties- 返回:
- Builder
-
setName
set client name. -
setRetryTimes
set retryTimes. -
setTimeOutMills
set timeOutMills. -
setConnectionKeepAlive
set connectionKeepAlive. -
setThreadPoolKeepAlive
set threadPoolKeepAlive. -
setThreadPoolCoreSize
set threadPoolCoreSize. -
setThreadPoolMaxSize
set threadPoolMaxSize. -
setServerCheckTimeOut
set serverCheckTimeOut. -
setThreadPoolQueueSize
set threadPoolQueueSize. -
setMaxInboundMessageSize
set maxInboundMessageSize. -
setChannelKeepAlive
set channelKeepAlive. -
setChannelKeepAliveTimeout
set channelKeepAlive.- 参数:
channelKeepAliveTimeout- milliseconds- 返回:
- builder
-
setCapabilityNegotiationTimeout
public DefaultGrpcClientConfig.Builder setCapabilityNegotiationTimeout(long capabilityNegotiationTimeout) -
setHealthCheckRetryTimes
set healthCheckRetryTimes. -
setHealthCheckTimeOut
set healthCheckTimeOut. -
setLabels
set labels. -
setTlsConfig
set tlsConfig.- 参数:
tlsConfig- tls of client.- 返回:
-
build
build GrpcClientConfig.
-