类 GrpcClusterClient
- java.lang.Object
-
- com.alibaba.nacos.common.remote.client.RpcClient
-
- com.alibaba.nacos.common.remote.client.grpc.GrpcClient
-
- com.alibaba.nacos.common.remote.client.grpc.GrpcClusterClient
-
- 所有已实现的接口:
Closeable
public class GrpcClusterClient extends GrpcClient
gRPC client for cluster.- 版本:
- $Id: GrpcClusterClient.java, v 0.1 2020年09月07日 11:05 AM liuzunfei Exp $
- 作者:
- liuzunfei
-
-
嵌套类概要
-
从类继承的嵌套类/接口 com.alibaba.nacos.common.remote.client.RpcClient
RpcClient.ConnectionEvent, RpcClient.ServerInfo
-
-
字段概要
-
从类继承的字段 com.alibaba.nacos.common.remote.client.RpcClient
clientAbilities, clientEventExecutor, connectionEventListeners, currentConnection, eventLinkedBlockingQueue, rpcClientConfig, rpcClientStatus, serverRequestHandlers
-
-
构造器概要
构造器 构造器 说明 GrpcClusterClient(GrpcClientConfig config)Empty constructor.GrpcClusterClient(java.lang.String name)Empty constructor.GrpcClusterClient(java.lang.String name, java.lang.Integer threadPoolCoreSize, java.lang.Integer threadPoolMaxSize, java.util.Map<java.lang.String,java.lang.String> labels)Constructor.GrpcClusterClient(java.util.Properties properties)Constructor.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intrpcPortOffset()increase offset of the nacos server port for the rpc server port.-
从类继承的方法 com.alibaba.nacos.common.remote.client.grpc.GrpcClient
connectToServer, createGrpcExecutor, getConnectionType, shutdown
-
从类继承的方法 com.alibaba.nacos.common.remote.client.RpcClient
asyncRequest, clientAbilities, currentRpcServer, getCurrentServer, getLabels, getName, getServerListFactory, getTenant, handleServerRequest, init, isRunning, isShutdown, isWaitInitiated, labels, nextRpcServer, notifyConnected, notifyDisConnected, onServerListChange, reconnect, registerConnectionListener, registerServerRequestHandler, request, request, requestFuture, serverListFactory, setTenant, start, switchServerAsync, switchServerAsync, switchServerAsyncOnRequestFail
-
-
-
-
构造器详细资料
-
GrpcClusterClient
public GrpcClusterClient(java.lang.String name)
Empty constructor.- 参数:
name- name of client.
-
GrpcClusterClient
public GrpcClusterClient(GrpcClientConfig config)
Empty constructor.- 参数:
config- of GrpcClientConfig.
-
GrpcClusterClient
public GrpcClusterClient(java.util.Properties properties)
Constructor.- 参数:
properties- .
-
GrpcClusterClient
public GrpcClusterClient(java.lang.String name, java.lang.Integer threadPoolCoreSize, java.lang.Integer threadPoolMaxSize, java.util.Map<java.lang.String,java.lang.String> labels)Constructor.- 参数:
name- name of client.threadPoolCoreSize- .threadPoolMaxSize- .labels- .
-
-
方法详细资料
-
rpcPortOffset
public int rpcPortOffset()
从类复制的说明:RpcClientincrease offset of the nacos server port for the rpc server port.- 指定者:
rpcPortOffset在类中RpcClient- 返回:
- rpc port offset
-
-