类 GrpcProtocol
- java.lang.Object
-
- org.apache.dubbo.rpc.protocol.AbstractProtocol
-
- org.apache.dubbo.rpc.protocol.AbstractProxyProtocol
-
- org.apache.dubbo.rpc.protocol.grpc.GrpcProtocol
-
- 所有已实现的接口:
Protocol
public class GrpcProtocol extends AbstractProxyProtocol
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 classGrpcProtocol.GrpcRemotingServer
-
字段概要
字段 修饰符和类型 字段 说明 static intDEFAULT_PORT
-
构造器概要
构造器 构造器 说明 GrpcProtocol()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voiddestroy()Destroy protocol:
1.intgetDefaultPort()Get default port when user doesn't config the port.-
从类继承的方法 org.apache.dubbo.rpc.protocol.AbstractProxyProtocol
addRpcException, export, getProxyFactory, setProxyFactory
-
从类继承的方法 org.apache.dubbo.rpc.protocol.AbstractProtocol
getExporterMap, getExporters, getServers, refer
-
-
-
-
字段详细资料
-
DEFAULT_PORT
public static final int DEFAULT_PORT
- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
getDefaultPort
public int getDefaultPort()
从接口复制的说明:ProtocolGet default port when user doesn't config the port.- 返回:
- default port
-
destroy
public void destroy()
从接口复制的说明:ProtocolDestroy protocol:
1. Cancel all services this protocol exports and refers
2. Release all occupied resources, for example: connection, port, etc.
3. Protocol can continue to export and refer new service even after it's destroyed.- 指定者:
destroy在接口中Protocol- 覆盖:
destroy在类中AbstractProtocol
-
-