public class RpcClientFactory extends Object
| 构造器和说明 |
|---|
RpcClientFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
static RpcClient |
createClient(String clientName,
ConnectionType connectionType,
Integer threadPoolCoreSize,
Integer threadPoolMaxSize,
Map<String,String> labels)
create a rpc client.
|
static RpcClient |
createClient(String clientName,
ConnectionType connectionType,
Map<String,String> labels)
create a rpc client.
|
static RpcClient |
createClusterClient(String clientName,
ConnectionType connectionType,
Integer threadPoolCoreSize,
Integer threadPoolMaxSize,
Map<String,String> labels)
create a rpc client.
|
static RpcClient |
createClusterClient(String clientName,
ConnectionType connectionType,
Map<String,String> labels)
create a rpc client.
|
static void |
destroyClient(String clientName)
shut down client.
|
static Set<Map.Entry<String,RpcClient>> |
getAllClientEntries()
get all client.
|
static RpcClient |
getClient(String clientName) |
public static Set<Map.Entry<String,RpcClient>> getAllClientEntries()
public static void destroyClient(String clientName) throws NacosException
clientName - client name.NacosExceptionpublic static RpcClient createClient(String clientName, ConnectionType connectionType, Map<String,String> labels)
clientName - client name.connectionType - client type.public static RpcClient createClient(String clientName, ConnectionType connectionType, Integer threadPoolCoreSize, Integer threadPoolMaxSize, Map<String,String> labels)
clientName - client name.connectionType - client type.threadPoolCoreSize - grpc thread pool core sizethreadPoolMaxSize - grpc thread pool max sizepublic static RpcClient createClusterClient(String clientName, ConnectionType connectionType, Map<String,String> labels)
clientName - client name.connectionType - client type.public static RpcClient createClusterClient(String clientName, ConnectionType connectionType, Integer threadPoolCoreSize, Integer threadPoolMaxSize, Map<String,String> labels)
clientName - client name.connectionType - client type.threadPoolCoreSize - grpc thread pool core sizethreadPoolMaxSize - grpc thread pool max sizeCopyright © 2018–2022 Alibaba Group. All rights reserved.