类 RestProtocol

    • 构造器详细资料

      • RestProtocol

        public RestProtocol()
    • 方法详细资料

      • setHttpBinder

        public void setHttpBinder(HttpBinder httpBinder)
      • getDefaultPort

        public int getDefaultPort()
        从接口复制的说明: Protocol
        Get default port when user doesn't config the port.
        返回:
        default port
      • 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