类 RemoteInvocationResult

    • 方法详细资料

      • getValue

        public Object getValue()
        Return the result value returned by a successful invocation of the target method, if any.
        另请参阅:
        hasException()
      • hasException

        public boolean hasException()
        Return whether this invocation result holds an exception. If this returns false, the result value applies (even if it is null).
        另请参阅:
        getValue(), getException()
      • hasInvocationTargetException

        public boolean hasInvocationTargetException()
        Return whether this invocation result holds an InvocationTargetException, thrown by an invocation of the target method itself.
        另请参阅:
        hasException()
      • recreate

        public Object recreate()
                        throws Throwable
        Recreate the invocation result, either returning the result value in case of a successful invocation of the target method, or rethrowing the exception thrown by the target method.
        返回:
        the result value, if any
        抛出:
        Throwable - the exception, if any