Class MarshalledInvocationResult<T>
- java.lang.Object
-
- net.sourceforge.jbizmo.commons.transport.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 Summary
Constructors Constructor Description MarshalledInvocationResult(Throwable throwable)ConstructorMarshalledInvocationResult(T returnValue)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThrowablegetException()TgetReturnValue()Get the invocation resultbooleanhasException()
-
-
-
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
-
-