类 GrpcSdkClient

所有已实现的接口:
Closeable

public class GrpcSdkClient extends GrpcClient
gRPC client for sdk.
版本:
$Id: GrpcSdkClient.java, v 0.1 2020年09月07日 11:05 AM liuzunfei Exp $
作者:
liuzunfei
  • 构造器详细资料

    • GrpcSdkClient

      public GrpcSdkClient(String name)
      Constructor.
      参数:
      name - name of client.
    • GrpcSdkClient

      public GrpcSdkClient(String name, Integer threadPoolCoreSize, Integer threadPoolMaxSize, Map<String,String> labels)
      Constructor.
      参数:
      name - name of client.
      threadPoolCoreSize - .
      threadPoolMaxSize - .
      labels - .
    • GrpcSdkClient

      public GrpcSdkClient(String name, Integer threadPoolCoreSize, Integer threadPoolMaxSize, Map<String,String> labels, RpcClientTlsConfig tlsConfig)
    • GrpcSdkClient

      public GrpcSdkClient(GrpcClientConfig config)
      constructor.
      参数:
      config - of GrpcClientConfig.
  • 方法详细资料

    • abilityMode

      protected com.alibaba.nacos.api.ability.constant.AbilityMode abilityMode()
      从类复制的说明: GrpcClient
      ability mode: sdk client or cluster client.
      指定者:
      abilityMode 在类中 GrpcClient
      返回:
      mode
    • rpcPortOffset

      public int rpcPortOffset()
      从类复制的说明: RpcClient
      increase offset of the nacos server port for the rpc server port.
      指定者:
      rpcPortOffset 在类中 RpcClient
      返回:
      rpc port offset