ParkNPark.client
Class FaultTolerantClientManager.ReturnValueOrException
java.lang.Object
ParkNPark.client.FaultTolerantClientManager.ReturnValueOrException
- Enclosing class:
- FaultTolerantClientManager
protected class FaultTolerantClientManager.ReturnValueOrException
- extends Object
Return value or an exception along with the return value or the exception
object. The exceptionThrown flag indicates whether this is an exception
or a normal return
Field Summary |
boolean |
exceptionThrown
When true, this instance is an exception; otherwise, this is a normal return value |
Object |
retVal
The return value or exception object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
retVal
public Object retVal
- The return value or exception object
exceptionThrown
public boolean exceptionThrown
- When true, this instance is an exception; otherwise, this is a normal return value
FaultTolerantClientManager.ReturnValueOrException
public FaultTolerantClientManager.ReturnValueOrException(Object retVal,
boolean exceptionThrown)
- Creates a new ReturnValueOrException using the given return value or exception object
and whether or not that object is a return value or an exception
- Parameters:
retVal
- The return value or exception objectexceptionThrown
- When true, retVal is an exception; when false, it's a return value