public class RpcClientFactory extends Object
| 构造器和说明 |
|---|
RpcClientFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
static RpcClient |
createClient(String clientName,
ConnectionType connectionType,
Integer threadPoolCoreSize,
Integer threadPoolMaxSize,
Map<String,String> labels) |
static RpcClient |
createClient(String clientName,
ConnectionType connectionType,
Integer threadPoolCoreSize,
Integer threadPoolMaxSize,
Map<String,String> labels,
RpcClientTlsConfig tlsConfig)
create a rpc client.
|
static RpcClient |
createClient(String clientName,
ConnectionType connectionType,
Map<String,String> labels)
create a rpc client.
|
static RpcClient |
createClient(String clientName,
ConnectionType connectionType,
Map<String,String> labels,
Properties properties,
RpcClientTlsConfig tlsConfig)
create client with properties.
|
static RpcClient |
createClient(String clientName,
ConnectionType connectionType,
Map<String,String> labels,
RpcClientTlsConfig tlsConfig) |
static RpcClient |
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 |
createClusterClient(String clientName,
ConnectionType connectionType,
Integer threadPoolCoreSize,
Integer threadPoolMaxSize,
Map<String,String> labels,
RpcClientTlsConfig tlsConfig)
createClusterClient.
|
static RpcClient |
createClusterClient(String clientName,
ConnectionType connectionType,
Map<String,String> labels)
Creates an RPC client for cluster communication with default thread pool settings.
|
static RpcClient |
createClusterClient(String clientName,
ConnectionType connectionType,
Map<String,String> labels,
RpcClientTlsConfig tlsConfig)
Creates an RPC client for cluster communication with TLS configuration.
|
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, Map<String,String> labels, RpcClientTlsConfig tlsConfig)
public static RpcClient createClient(String clientName, ConnectionType connectionType, Map<String,String> labels, Properties properties, RpcClientTlsConfig tlsConfig)
public static RpcClient createClient(String clientName, ConnectionType connectionType, Integer threadPoolCoreSize, Integer threadPoolMaxSize, Map<String,String> labels)
public static RpcClient createClient(String clientName, ConnectionType connectionType, Integer threadPoolCoreSize, Integer threadPoolMaxSize, Map<String,String> labels, RpcClientTlsConfig tlsConfig)
clientName - client name.connectionType - client type.threadPoolCoreSize - grpc thread pool core sizethreadPoolMaxSize - grpc thread pool max sizetlsConfig - tlsconfigpublic static RpcClient createClusterClient(String clientName, ConnectionType connectionType, Map<String,String> labels)
clientName - The name of the client.connectionType - The type of client connection.labels - Additional labels for RPC-related attributes.public static RpcClient createClusterClient(String clientName, ConnectionType connectionType, Map<String,String> labels, RpcClientTlsConfig tlsConfig)
clientName - The name of the client.connectionType - The type of client connection.labels - Additional labels for RPC-related attributes.tlsConfig - TLS configuration for secure communication.public static RpcClient createClusterClient(String clientName, ConnectionType connectionType, Integer threadPoolCoreSize, Integer threadPoolMaxSize, Map<String,String> labels)
clientName - The name of the client.connectionType - The type of client connection.threadPoolCoreSize - The core size of the gRPC thread pool.threadPoolMaxSize - The maximum size of the gRPC thread pool.labels - Additional labels for RPC-related attributes.public static RpcClient createClusterClient(String clientName, ConnectionType connectionType, Integer threadPoolCoreSize, Integer threadPoolMaxSize, Map<String,String> labels, RpcClientTlsConfig tlsConfig)
clientName - client name.connectionType - connectionType.threadPoolCoreSize - coreSize.threadPoolMaxSize - threadPoolSize.labels - tables.tlsConfig - tlsConfig.Copyright © 2018–2024 Alibaba Group. All rights reserved.