mandala.jacob.remote.gpf
Class RemoteMethodResultProxy
java.lang.Object
mandala.jacob.remote.AbstractRemote
mandala.jacob.remote.gpf.AbstractRemoteProxy
mandala.jacob.remote.gpf.RemoteMethodResultProxy
- All Implemented Interfaces:
- MethodResult, Remote, RemoteMethodResult, Serializable
- public abstract class RemoteMethodResultProxy
- extends AbstractRemoteProxy
- implements RemoteMethodResult
Generic proxy for remote MethodResult
implementation.
- Since:
- 1.0
- Version:
- $Revision: 1.2 $
- Author:
- eipi
- See Also:
RemoteMethodResult,
AbstractRemoteProxy,
ExceptionHandler,
Serialized Form
|
Method Summary |
boolean |
exceptionOccured()
Returns true if an exception occured during the
asynchronous method invocation, false otherwise. |
Throwable |
getException()
Return the exception thrown during the call to an asynchronous method
invocation. |
Object |
getReturnedResult()
Return the result returned by the call to an asynchronous method
invocation. |
Object |
getReturnedResultTrusted()
Return the result returned by the call to an asynchronous method
invocation. |
RemoteMethodResultProxy
public RemoteMethodResultProxy(Client client,
Exporter exporter,
ExceptionHandler exceptionHandler)
getException
public Throwable getException()
- Description copied from interface:
MethodResult
Return the exception thrown during the call to an asynchronous method
invocation. This method is unsafe related.
- Specified by:
getException in interface MethodResult
- Returns:
- Return the exception thrown during the call to an asynchronous
method invocation.
getReturnedResult
public Object getReturnedResult()
throws Throwable
- Description copied from interface:
MethodResult
Return the result returned by the call to an asynchronous method
invocation. If doesExceptionOccured() returns
true, the exception caught is thrown. This method is
unsafe related.
- Specified by:
getReturnedResult in interface MethodResult
- Returns:
- the result returned by the call to a asynchronous method
invocation.
- Throws:
Throwable - The exception thrown during the call.
getReturnedResultTrusted
public Object getReturnedResultTrusted()
- Description copied from interface:
MethodResult
Return the result returned by the call to an asynchronous method
invocation. This method is unsafe related.
If doesExceptionOccured() returns true,
the value returned is undefined.
- Specified by:
getReturnedResultTrusted in interface MethodResult
- Returns:
- the result returned by the call to an asynchronous method
invocation.
exceptionOccured
public boolean exceptionOccured()
- Description copied from interface:
MethodResult
Returns true if an exception occured during the
asynchronous method invocation, false otherwise. This
method is unsafe related.
- Specified by:
exceptionOccured in interface MethodResult
- Returns:
true if an exception occured during the
asynchronous method invocation, false otherwise.
Mandala help mailing list