类 DefaultGrpcClientConfig.Builder
- java.lang.Object
-
- com.alibaba.nacos.common.remote.client.grpc.DefaultGrpcClientConfig.Builder
-
public static class DefaultGrpcClientConfig.Builder extends java.lang.Object
-
-
字段概要
字段 修饰符和类型 字段 说明 private intchannelKeepAliveprivate longconnectionKeepAliveprivate inthealthCheckRetryTimesprivate longhealthCheckTimeOutprivate java.util.Map<java.lang.String,java.lang.String>labelsprivate intmaxInboundMessageSizeprivate java.lang.Stringnameprivate intretryTimesprivate longserverCheckTimeOutprivate intthreadPoolCoreSizeprivate longthreadPoolKeepAliveprivate intthreadPoolMaxSizeprivate intthreadPoolQueueSizeprivate longtimeOutMills
-
构造器概要
构造器 限定符 构造器 说明 privateBuilder()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 GrpcClientConfigbuild()build GrpcClientConfig.DefaultGrpcClientConfig.BuilderfromProperties(java.util.Properties properties)Set config from properties.DefaultGrpcClientConfig.BuildersetChannelKeepAlive(int channelKeepAlive)set channelKeepAlive.DefaultGrpcClientConfig.BuildersetConnectionKeepAlive(long connectionKeepAlive)set connectionKeepAlive.DefaultGrpcClientConfig.BuildersetHealthCheckRetryTimes(int healthCheckRetryTimes)set healthCheckRetryTimes.DefaultGrpcClientConfig.BuildersetHealthCheckTimeOut(long healthCheckTimeOut)set healthCheckTimeOut.DefaultGrpcClientConfig.BuildersetLabels(java.util.Map<java.lang.String,java.lang.String> labels)set labels.DefaultGrpcClientConfig.BuildersetMaxInboundMessageSize(int maxInboundMessageSize)set maxInboundMessageSize.DefaultGrpcClientConfig.BuildersetName(java.lang.String name)set client name.DefaultGrpcClientConfig.BuildersetRetryTimes(int retryTimes)set retryTimes.DefaultGrpcClientConfig.BuildersetServerCheckTimeOut(java.lang.Long serverCheckTimeOut)set serverCheckTimeOut.DefaultGrpcClientConfig.BuildersetThreadPoolCoreSize(java.lang.Integer threadPoolCoreSize)set threadPoolCoreSize.DefaultGrpcClientConfig.BuildersetThreadPoolKeepAlive(java.lang.Long threadPoolKeepAlive)set threadPoolKeepAlive.DefaultGrpcClientConfig.BuildersetThreadPoolMaxSize(java.lang.Integer threadPoolMaxSize)set threadPoolMaxSize.DefaultGrpcClientConfig.BuildersetThreadPoolQueueSize(int threadPoolQueueSize)set threadPoolQueueSize.DefaultGrpcClientConfig.BuildersetTimeOutMills(long timeOutMills)set timeOutMills.
-
-
-
字段详细资料
-
name
private java.lang.String name
-
retryTimes
private int retryTimes
-
timeOutMills
private long timeOutMills
-
connectionKeepAlive
private long connectionKeepAlive
-
threadPoolKeepAlive
private long threadPoolKeepAlive
-
threadPoolCoreSize
private int threadPoolCoreSize
-
threadPoolMaxSize
private int threadPoolMaxSize
-
serverCheckTimeOut
private long serverCheckTimeOut
-
threadPoolQueueSize
private int threadPoolQueueSize
-
maxInboundMessageSize
private int maxInboundMessageSize
-
channelKeepAlive
private int channelKeepAlive
-
healthCheckRetryTimes
private int healthCheckRetryTimes
-
healthCheckTimeOut
private long healthCheckTimeOut
-
labels
private java.util.Map<java.lang.String,java.lang.String> labels
-
-
方法详细资料
-
fromProperties
public DefaultGrpcClientConfig.Builder fromProperties(java.util.Properties properties)
Set config from properties.- 参数:
properties- properties- 返回:
- Builder
-
setName
public DefaultGrpcClientConfig.Builder setName(java.lang.String name)
set client name.
-
setRetryTimes
public DefaultGrpcClientConfig.Builder setRetryTimes(int retryTimes)
set retryTimes.
-
setTimeOutMills
public DefaultGrpcClientConfig.Builder setTimeOutMills(long timeOutMills)
set timeOutMills.
-
setConnectionKeepAlive
public DefaultGrpcClientConfig.Builder setConnectionKeepAlive(long connectionKeepAlive)
set connectionKeepAlive.
-
setThreadPoolKeepAlive
public DefaultGrpcClientConfig.Builder setThreadPoolKeepAlive(java.lang.Long threadPoolKeepAlive)
set threadPoolKeepAlive.
-
setThreadPoolCoreSize
public DefaultGrpcClientConfig.Builder setThreadPoolCoreSize(java.lang.Integer threadPoolCoreSize)
set threadPoolCoreSize.
-
setThreadPoolMaxSize
public DefaultGrpcClientConfig.Builder setThreadPoolMaxSize(java.lang.Integer threadPoolMaxSize)
set threadPoolMaxSize.
-
setServerCheckTimeOut
public DefaultGrpcClientConfig.Builder setServerCheckTimeOut(java.lang.Long serverCheckTimeOut)
set serverCheckTimeOut.
-
setThreadPoolQueueSize
public DefaultGrpcClientConfig.Builder setThreadPoolQueueSize(int threadPoolQueueSize)
set threadPoolQueueSize.
-
setMaxInboundMessageSize
public DefaultGrpcClientConfig.Builder setMaxInboundMessageSize(int maxInboundMessageSize)
set maxInboundMessageSize.
-
setChannelKeepAlive
public DefaultGrpcClientConfig.Builder setChannelKeepAlive(int channelKeepAlive)
set channelKeepAlive.
-
setHealthCheckRetryTimes
public DefaultGrpcClientConfig.Builder setHealthCheckRetryTimes(int healthCheckRetryTimes)
set healthCheckRetryTimes.
-
setHealthCheckTimeOut
public DefaultGrpcClientConfig.Builder setHealthCheckTimeOut(long healthCheckTimeOut)
set healthCheckTimeOut.
-
setLabels
public DefaultGrpcClientConfig.Builder setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
set labels.
-
build
public GrpcClientConfig build()
build GrpcClientConfig.
-
-