类 RpcResult

    • 构造器概要

      构造器 
      构造器 说明
      RpcResult()  
       result)  
       exception)  
    • 方法概要

      所有方法 实例方法 具体方法 已过时的方法 
      修饰符和类型 方法 说明
      void <,​> map)  
       key)
      get attachment by key.
       key,  defaultValue)
      get attachment by key with default value.
      <,​> getAttachments()
      get attachments.
      getException()
      Get exception.
      getResult()
      已过时。
      Replace to getValue()
      getValue()
      Get invoke result.
      boolean hasException()
      Has exception.
      recreate()
      Recreate.
      void  key,  value)  
      void <,​> map)
      Append all items from the map into the attachment, if map is empty then nothing happens
      void  e)  
      void  result)
      已过时。
      Replace to setValue()
      void  value)  
      toString()  
      • 从类继承的方法 java.lang.

        , , , , , , ,
    • 构造器详细资料

      • RpcResult

        public RpcResult()
      • RpcResult

        public RpcResult​( result)
      • RpcResult

        public RpcResult​( exception)
    • 方法详细资料

      • recreate

        public  recreate()
                        throws 
        从接口复制的说明: Result
        Recreate.

        if (hasException()) { throw getException(); } else { return getValue(); }

        指定者:
        recreate 在接口中 Result
        返回:
        result.
        抛出:
      • getResult

        public  getResult()
        已过时。
        Replace to getValue()
        指定者:
        getResult 在接口中 Result
        另请参阅:
        getValue()
      • setResult

        public void setResult​( result)
        已过时。
        Replace to setValue()
        另请参阅:
        setValue(Object)
      • getValue

        public  getValue()
        从接口复制的说明: Result
        Get invoke result.
        指定者:
        getValue 在接口中 Result
        返回:
        result. if no result return null.
      • setValue

        public void setValue​( value)
      • getException

        public  getException()
        从接口复制的说明: Result
        Get exception.
        指定者:
        getException 在接口中 Result
        返回:
        exception. if no exception return null.
      • setException

        public void setException​( e)
      • hasException

        public boolean hasException()
        从接口复制的说明: Result
        Has exception.
        指定者:
        hasException 在接口中 Result
        返回:
        has exception.
      • getAttachments

        public <,​> getAttachments()
        从接口复制的说明: Result
        get attachments.
        指定者:
        getAttachments 在接口中 Result
        返回:
        attachments.
      • setAttachments

        public void setAttachments​(<,​> map)
        Append all items from the map into the attachment, if map is empty then nothing happens
        参数:
        map - contains all key-value pairs to append
      • addAttachments

        public void addAttachments​(<,​> map)
      • getAttachment

        public  getAttachment​( key)
        从接口复制的说明: Result
        get attachment by key.
        指定者:
        getAttachment 在接口中 Result
        返回:
        attachment value.
      • getAttachment

        public  getAttachment​( key,
                                     defaultValue)
        从接口复制的说明: Result
        get attachment by key with default value.
        指定者:
        getAttachment 在接口中 Result
        返回:
        attachment value.
      • setAttachment

        public void setAttachment​( key,
                                   value)
      • toString

        public  toString()
        覆盖:
         在类中