类 GrpcClient
java.lang.Object
com.alibaba.nacos.common.remote.client.RpcClient
com.alibaba.nacos.common.remote.client.grpc.GrpcClient
- 所有已实现的接口:
Closeable
- 直接已知子类:
GrpcClusterClient,GrpcSdkClient
gRPC Client.
- 版本:
- $Id: GrpcClient.java, v 0.1 2020年07月13日 9:16 PM 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, labels, rpcClientStatus, serverRequestHandlers -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明connectToServer(RpcClient.ServerInfo serverInfo)connect to server.get connection type of this client.voidshutdown()Shutdown the Resources, such as Thread Pool.从类继承的方法 com.alibaba.nacos.common.remote.client.RpcClient
asyncRequest, clientAbilities, currentRpcServer, getCurrentServer, getLabels, getName, getServerListFactory, getTenant, handleServerRequest, isRunning, isShutdown, isWaitInitiated, keepAlive, labels, nextRpcServer, notifyConnected, notifyDisConnected, reconnect, registerConnectionListener, registerServerRequestHandler, request, request, requestFuture, rpcPortOffset, serverListFactory, setName, setTenant, start, switchServerAsync, switchServerAsync, switchServerAsyncOnRequestFail
-
构造器详细资料
-
GrpcClient
Empty constructor.
-
-
方法详细资料
-
getConnectionType
从类复制的说明:RpcClientget connection type of this client.- 指定者:
getConnectionType在类中RpcClient- 返回:
- ConnectionType.
-
shutdown
public void shutdown() throws com.alibaba.nacos.api.exception.NacosException从接口复制的说明:CloseableShutdown the Resources, such as Thread Pool. -
connectToServer
从类复制的说明:RpcClientconnect to server.- 指定者:
connectToServer在类中RpcClient- 参数:
serverInfo- server address to connect.- 返回:
- return connection when successfully connect to server, or null if failed.
-