| 程序包 | 说明 |
|---|---|
| com.alibaba.nacos.common.remote.client | |
| com.alibaba.nacos.common.remote.client.grpc |
| 限定符和类型 | 方法和说明 |
|---|---|
static RpcClient |
RpcClientFactory.createClient(String clientName,
ConnectionType connectionType,
Integer threadPoolCoreSize,
Integer threadPoolMaxSize,
Map<String,String> labels) |
static RpcClient |
RpcClientFactory.createClient(String clientName,
ConnectionType connectionType,
Integer threadPoolCoreSize,
Integer threadPoolMaxSize,
Map<String,String> labels,
RpcClientTlsConfig tlsConfig)
create a rpc client.
|
static RpcClient |
RpcClientFactory.createClient(String clientName,
ConnectionType connectionType,
Map<String,String> labels)
create a rpc client.
|
static RpcClient |
RpcClientFactory.createClient(String clientName,
ConnectionType connectionType,
Map<String,String> labels,
Properties properties,
RpcClientTlsConfig tlsConfig)
create client with properties.
|
static RpcClient |
RpcClientFactory.createClient(String clientName,
ConnectionType connectionType,
Map<String,String> labels,
RpcClientTlsConfig tlsConfig) |
static RpcClient |
RpcClientFactory.createClusterClient(String clientName,
ConnectionType connectionType,
Integer threadPoolCoreSize,
Integer threadPoolMaxSize,
Map<String,String> labels)
Creates an RPC client for cluster communication with custom thread pool settings.
|
static RpcClient |
RpcClientFactory.createClusterClient(String clientName,
ConnectionType connectionType,
Integer threadPoolCoreSize,
Integer threadPoolMaxSize,
Map<String,String> labels,
RpcClientTlsConfig tlsConfig)
createClusterClient.
|
static RpcClient |
RpcClientFactory.createClusterClient(String clientName,
ConnectionType connectionType,
Map<String,String> labels)
Creates an RPC client for cluster communication with default thread pool settings.
|
static RpcClient |
RpcClientFactory.createClusterClient(String clientName,
ConnectionType connectionType,
Map<String,String> labels,
RpcClientTlsConfig tlsConfig)
Creates an RPC client for cluster communication with TLS configuration.
|
static RpcClient |
RpcClientFactory.getClient(String clientName) |
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–2024 Alibaba Group. All rights reserved.