类 DefaultGrpcClientConfig
- java.lang.Object
-
- com.alibaba.nacos.common.remote.client.grpc.DefaultGrpcClientConfig
-
- 所有已实现的接口:
GrpcClientConfig,RpcClientConfig
public class DefaultGrpcClientConfig extends java.lang.Object implements GrpcClientConfig
Default grpc client config.- 作者:
- karsonto
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classDefaultGrpcClientConfig.Builder
-
字段概要
字段 修饰符和类型 字段 说明 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
-
构造器概要
构造器 限定符 构造器 说明 privateDefaultGrpcClientConfig(DefaultGrpcClientConfig.Builder builder)constructor.
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 intchannelKeepAlive()get channelKeepAlive time.longconnectionKeepAlive()get connection keep alive time.inthealthCheckRetryTimes()get health check retry times.longhealthCheckTimeOut()get health check time out.java.util.Map<java.lang.String,java.lang.String>labels()get map of labels.private intloadIntegerConfig(java.lang.String key, int builderValue)private longloadLongConfig(java.lang.String key, long builderValue)intmaxInboundMessageSize()get maxInboundMessage size.java.lang.Stringname()get name.static DefaultGrpcClientConfig.BuildernewBuilder()intretryTimes()get request retry times.longserverCheckTimeOut()get server check time out.intthreadPoolCoreSize()get threadPoolCoreSize.longthreadPoolKeepAlive()get thread pool keep alive time.intthreadPoolMaxSize()get threadPoolMaxSize.intthreadPoolQueueSize()get thread pool queue size.longtimeOutMills()get time out mills.
-
-
-
字段详细资料
-
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
-
-
构造器详细资料
-
DefaultGrpcClientConfig
private DefaultGrpcClientConfig(DefaultGrpcClientConfig.Builder builder)
constructor.- 参数:
builder- builder of DefaultGrpcClientConfig builder.
-
-
方法详细资料
-
loadIntegerConfig
private int loadIntegerConfig(java.lang.String key, int builderValue)
-
loadLongConfig
private long loadLongConfig(java.lang.String key, long builderValue)
-
name
public java.lang.String name()
从接口复制的说明:RpcClientConfigget name.- 指定者:
name在接口中RpcClientConfig- 返回:
- name.
-
retryTimes
public int retryTimes()
从接口复制的说明:RpcClientConfigget request retry times.- 指定者:
retryTimes在接口中RpcClientConfig- 返回:
- retryTimes.
-
timeOutMills
public long timeOutMills()
从接口复制的说明:RpcClientConfigget time out mills.- 指定者:
timeOutMills在接口中RpcClientConfig- 返回:
- timeOutMills.
-
connectionKeepAlive
public long connectionKeepAlive()
从接口复制的说明:RpcClientConfigget connection keep alive time.- 指定者:
connectionKeepAlive在接口中RpcClientConfig- 返回:
- connectionKeepAlive.
-
threadPoolCoreSize
public int threadPoolCoreSize()
从接口复制的说明:GrpcClientConfigget threadPoolCoreSize.- 指定者:
threadPoolCoreSize在接口中GrpcClientConfig- 返回:
- threadPoolCoreSize.
-
threadPoolMaxSize
public int threadPoolMaxSize()
从接口复制的说明:GrpcClientConfigget threadPoolMaxSize.- 指定者:
threadPoolMaxSize在接口中GrpcClientConfig- 返回:
- threadPoolMaxSize.
-
threadPoolKeepAlive
public long threadPoolKeepAlive()
从接口复制的说明:GrpcClientConfigget thread pool keep alive time.- 指定者:
threadPoolKeepAlive在接口中GrpcClientConfig- 返回:
- threadPoolKeepAlive.
-
serverCheckTimeOut
public long serverCheckTimeOut()
从接口复制的说明:GrpcClientConfigget server check time out.- 指定者:
serverCheckTimeOut在接口中GrpcClientConfig- 返回:
- serverCheckTimeOut.
-
threadPoolQueueSize
public int threadPoolQueueSize()
从接口复制的说明:GrpcClientConfigget thread pool queue size.- 指定者:
threadPoolQueueSize在接口中GrpcClientConfig- 返回:
- threadPoolQueueSize.
-
maxInboundMessageSize
public int maxInboundMessageSize()
从接口复制的说明:GrpcClientConfigget maxInboundMessage size.- 指定者:
maxInboundMessageSize在接口中GrpcClientConfig- 返回:
- maxInboundMessageSize.
-
channelKeepAlive
public int channelKeepAlive()
从接口复制的说明:GrpcClientConfigget channelKeepAlive time.- 指定者:
channelKeepAlive在接口中GrpcClientConfig- 返回:
- channelKeepAlive.
-
healthCheckRetryTimes
public int healthCheckRetryTimes()
从接口复制的说明:RpcClientConfigget health check retry times.- 指定者:
healthCheckRetryTimes在接口中RpcClientConfig- 返回:
- healthCheckRetryTimes.
-
healthCheckTimeOut
public long healthCheckTimeOut()
从接口复制的说明:RpcClientConfigget health check time out.- 指定者:
healthCheckTimeOut在接口中RpcClientConfig- 返回:
- healthCheckTimeOut.
-
labels
public java.util.Map<java.lang.String,java.lang.String> labels()
从接口复制的说明:RpcClientConfigget map of labels.- 指定者:
labels在接口中RpcClientConfig- 返回:
- labels.
-
newBuilder
public static DefaultGrpcClientConfig.Builder newBuilder()
-
-