| 程序包 | 说明 |
|---|---|
| com.alibaba.nacos.common.remote.client | |
| com.alibaba.nacos.common.remote.client.grpc |
| 限定符和类型 | 方法和说明 |
|---|---|
RpcClient |
RpcClient.clientAbilities(ClientAbilities clientAbilities)
init client abilities.
|
static RpcClient |
RpcClientFactory.createClient(String clientName,
ConnectionType connectionType,
Integer threadPoolCoreSize,
Integer threadPoolMaxSize,
Map<String,String> labels)
create a rpc client.
|
static RpcClient |
RpcClientFactory.createClient(String clientName,
ConnectionType connectionType,
Map<String,String> labels)
create a rpc client.
|
static RpcClient |
RpcClientFactory.createClusterClient(String clientName,
ConnectionType connectionType,
Integer threadPoolCoreSize,
Integer threadPoolMaxSize,
Map<String,String> labels)
create a rpc client.
|
static RpcClient |
RpcClientFactory.createClusterClient(String clientName,
ConnectionType connectionType,
Map<String,String> labels)
create a rpc client.
|
static RpcClient |
RpcClientFactory.getClient(String clientName) |
RpcClient |
RpcClient.keepAlive(long keepAliveTime,
TimeUnit timeUnit)
init keepalive time.
|
RpcClient |
RpcClient.labels(Map<String,String> labels)
init labels.
|
RpcClient |
RpcClient.serverListFactory(ServerListFactory serverListFactory)
init server list factory. only can init once.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Set<Map.Entry<String,RpcClient>> |
RpcClientFactory.getAllClientEntries()
get all client.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
GrpcClient
gRPC Client.
|
class |
GrpcClusterClient
gRPC client for cluster.
|
class |
GrpcSdkClient
gRPC client for sdk.
|
Copyright © 2018–2022 Alibaba Group. All rights reserved.