类 GrpcSdkClient
- 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.GrpcSdkClient
-
- 所有已实现的接口:
Closeable
public class GrpcSdkClient extends GrpcClient
gRPC client for sdk.- 版本:
- $Id: GrpcSdkClient.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
-
-
构造器概要
构造器 构造器 说明 GrpcSdkClient(GrpcClientConfig config)constructor.GrpcSdkClient(java.lang.String name)Constructor.GrpcSdkClient(java.lang.String name, java.lang.Integer threadPoolCoreSize, java.lang.Integer threadPoolMaxSize, java.util.Map<java.lang.String,java.lang.String> labels)Constructor.GrpcSdkClient(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
-
-
-
-
构造器详细资料
-
GrpcSdkClient
public GrpcSdkClient(java.lang.String name)
Constructor.- 参数:
name- name of client.
-
GrpcSdkClient
public GrpcSdkClient(java.util.Properties properties)
Constructor.- 参数:
properties- .
-
GrpcSdkClient
public GrpcSdkClient(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- .
-
GrpcSdkClient
public GrpcSdkClient(GrpcClientConfig config)
constructor.- 参数:
config- of GrpcClientConfig.
-
-
方法详细资料
-
rpcPortOffset
public int rpcPortOffset()
从类复制的说明:RpcClientincrease offset of the nacos server port for the rpc server port.- 指定者:
rpcPortOffset在类中RpcClient- 返回:
- rpc port offset
-
-