Class MarshalledInvocationResult<T>

  • Type Parameters:
    T - the type of the return value
    All Implemented Interfaces:
    Serializable

    public class MarshalledInvocationResult<T>
    extends Object
    implements Serializable

    Instances of this class represent the result of a remote method invocation

    Copyright 2010 (C) by Martin Ganserer

    Version:
    1.0.0
    Author:
    Martin Ganserer
    See Also:
    Serialized Form
    • Constructor Detail

      • MarshalledInvocationResult

        public MarshalledInvocationResult​(T returnValue)
        Constructor
        Parameters:
        returnValue -
      • MarshalledInvocationResult

        public MarshalledInvocationResult​(Throwable throwable)
        Constructor
        Parameters:
        throwable -
    • Method Detail

      • getReturnValue

        public T getReturnValue()
                         throws Throwable
        Get the invocation result
        Returns:
        the result of the invocation
        Throws:
        Throwable - if the remote method has thrown an exception
      • hasException

        public boolean hasException()
        Returns:
        true if an exception was thrown
      • getException

        public Throwable getException()
        Returns:
        an available invocation exception or null