类 ThriftProtocol

  • 所有已实现的接口:
    Protocol

    @Deprecated
    public class ThriftProtocol
    extends AbstractProtocol
    已过时。
    从以下版本开始:
    2.7.0, use https://github.com/dubbo/dubbo-rpc-native-thrift instead
    • 字段详细资料

      • DEFAULT_PORT

        public static final int DEFAULT_PORT
        已过时。
        另请参阅:
        常量字段值
    • 构造器详细资料

      • ThriftProtocol

        public ThriftProtocol()
        已过时。
    • 方法详细资料

      • getDefaultPort

        public int getDefaultPort()
        已过时。
        从接口复制的说明: Protocol
        Get default port when user doesn't config the port.
        返回:
        default port
      • export

        public <T> Exporter<T> export​(Invoker<T> invoker)
                               throws RpcException
        已过时。
        从接口复制的说明: Protocol
        Export service for remote invocation:
        1. Protocol should record request source address after receive a request: RpcContext.getContext().setRemoteAddress();
        2. export() must be idempotent, that is, there's no difference between invoking once and invoking twice when export the same URL
        3. Invoker instance is passed in by the framework, protocol needs not to care
        类型参数:
        T - Service type
        参数:
        invoker - Service invoker
        返回:
        exporter reference for exported service, useful for unexport the service later
        抛出:
        RpcException - thrown when error occurs during export the service, for example: port is occupied
      • destroy

        public void destroy()
        已过时。
        从接口复制的说明: Protocol
        Destroy 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