接口 GrpcClientConfig
- 所有超级接口:
RpcClientConfig
- 所有已知实现类:
DefaultGrpcClientConfig
GrpcClient config. Use to collect and init Grpc client configuration.
- 作者:
- karsonto
-
方法概要
修饰符和类型方法说明longget timeout of connection setup(TimeUnit.MILLISECONDS).intget channelKeepAlive time.longget channelKeepAliveTimeout.intget maxInboundMessage size.longget server check time out.voidSet name of client.voidsetTlsConfig(RpcClientTlsConfig tlsConfig) Set TlsConfig.intget threadPoolCoreSize.longget thread pool keep alive time.intget threadPoolMaxSize.intget thread pool queue size.getTlsConfig.从接口继承的方法 com.alibaba.nacos.common.remote.client.RpcClientConfig
connectionKeepAlive, healthCheckRetryTimes, healthCheckTimeOut, labels, name, retryTimes, timeOutMills
-
方法详细资料
-
threadPoolCoreSize
int threadPoolCoreSize()get threadPoolCoreSize.- 返回:
- threadPoolCoreSize.
-
threadPoolMaxSize
int threadPoolMaxSize()get threadPoolMaxSize.- 返回:
- threadPoolMaxSize.
-
threadPoolKeepAlive
long threadPoolKeepAlive()get thread pool keep alive time.- 返回:
- threadPoolKeepAlive.
-
serverCheckTimeOut
long serverCheckTimeOut()get server check time out.- 返回:
- serverCheckTimeOut.
-
threadPoolQueueSize
int threadPoolQueueSize()get thread pool queue size.- 返回:
- threadPoolQueueSize.
-
maxInboundMessageSize
int maxInboundMessageSize()get maxInboundMessage size.- 返回:
- maxInboundMessageSize.
-
channelKeepAlive
int channelKeepAlive()get channelKeepAlive time.- 返回:
- channelKeepAlive.
-
channelKeepAliveTimeout
long channelKeepAliveTimeout()get channelKeepAliveTimeout.- 返回:
- channelKeepAliveTimeout.
-
tlsConfig
TlsConfig tlsConfig()getTlsConfig.- 返回:
- TlsConfig.
-
setTlsConfig
Set TlsConfig.- 参数:
tlsConfig- tlsConfig of client.
-
setName
Set name of client.- 参数:
name- name of client.
-
capabilityNegotiationTimeout
long capabilityNegotiationTimeout()get timeout of connection setup(TimeUnit.MILLISECONDS).- 返回:
- timeout of connection setup
-