public static class DefaultGrpcClientConfig.Builder extends Object
public DefaultGrpcClientConfig.Builder buildSdkFromProperties(Properties properties)
public DefaultGrpcClientConfig.Builder buildClusterFromProperties(Properties properties)
public DefaultGrpcClientConfig.Builder fromProperties(Properties properties, RpcClientTlsConfig tlsConfig)
properties - propertiespublic DefaultGrpcClientConfig.Builder setName(String name)
public DefaultGrpcClientConfig.Builder setRetryTimes(int retryTimes)
public DefaultGrpcClientConfig.Builder setTimeOutMills(long timeOutMills)
public DefaultGrpcClientConfig.Builder setConnectionKeepAlive(long connectionKeepAlive)
public DefaultGrpcClientConfig.Builder setThreadPoolKeepAlive(Long threadPoolKeepAlive)
public DefaultGrpcClientConfig.Builder setThreadPoolCoreSize(Integer threadPoolCoreSize)
public DefaultGrpcClientConfig.Builder setThreadPoolMaxSize(Integer threadPoolMaxSize)
public DefaultGrpcClientConfig.Builder setServerCheckTimeOut(Long serverCheckTimeOut)
public DefaultGrpcClientConfig.Builder setThreadPoolQueueSize(int threadPoolQueueSize)
public DefaultGrpcClientConfig.Builder setMaxInboundMessageSize(int maxInboundMessageSize)
public DefaultGrpcClientConfig.Builder setChannelKeepAlive(int channelKeepAlive)
public DefaultGrpcClientConfig.Builder setChannelKeepAliveTimeout(int channelKeepAliveTimeout)
channelKeepAliveTimeout - millisecondspublic DefaultGrpcClientConfig.Builder setCapabilityNegotiationTimeout(long capabilityNegotiationTimeout)
public DefaultGrpcClientConfig.Builder setHealthCheckRetryTimes(int healthCheckRetryTimes)
public DefaultGrpcClientConfig.Builder setHealthCheckTimeOut(long healthCheckTimeOut)
public DefaultGrpcClientConfig.Builder setLabels(Map<String,String> labels)
public DefaultGrpcClientConfig.Builder setTlsConfig(RpcClientTlsConfig tlsConfig)
tlsConfig - tls of client.public GrpcClientConfig build()
Copyright © 2018–2024 Alibaba Group. All rights reserved.