接口 Result

    • 方法详细资料

      • getValue

        Object getValue()
        Get invoke result.
        返回:
        result. if no result return null.
      • getException

        Throwable getException()
        Get exception.
        返回:
        exception. if no exception return null.
      • hasException

        boolean hasException()
        Has exception.
        返回:
        has exception.
      • recreate

        Object recreate()
                 throws Throwable
        Recreate.

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

        返回:
        result.
        抛出:
        Throwable
      • getAttachments

        Map<String,String> getAttachments()
        get attachments.
        返回:
        attachments.
      • getAttachment

        String getAttachment(String key)
        get attachment by key.
        返回:
        attachment value.
      • getAttachment

        String getAttachment(String key,
                             String defaultValue)
        get attachment by key with default value.
        返回:
        attachment value.