mandala.rami
Interface MethodResult

All Known Subinterfaces:
FutureClient, RemoteFutureClient, RemoteMethodResult
All Known Implementing Classes:
AbstractFutureClient, RemoteMethodResultProxy

public interface MethodResult

This interface represents the result returned by an asynchronous method invocation.

Every methods of this interface is unsafe related meaning they return an undefined result if the asynchronous method invocation is not considered terminated i.e. when the result is not yet available.

This interface provides informations available after the real execution of the specified method.

Version:
1.0
Author:
eipi
See Also:
InvocationInfo, InvocationObserver, InvocationEventsWaiter, FutureClient

Method Summary
 boolean exceptionOccured()
          Returns true if an exception occured during the asynchronous method invocation, false otherwise.
 java.lang.Throwable getException()
          Return the exception thrown during the call to an asynchronous method invocation.
 java.lang.Object getReturnedResult()
          Return the result returned by the call to an asynchronous method invocation.
 java.lang.Object getReturnedResultTrusted()
          Return the result returned by the call to an asynchronous method invocation.
 

Method Detail

getException

public java.lang.Throwable getException()

Return the exception thrown during the call to an asynchronous method invocation. This method is unsafe related.

Returns:
Return the exception thrown during the call to an asynchronous method invocation.

getReturnedResult

public java.lang.Object getReturnedResult()
                                   throws java.lang.Throwable

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.

Returns:
the result returned by the call to a asynchronous method invocation.
Throws:
java.lang.Throwable - The exception thrown during the call.

getReturnedResultTrusted

public java.lang.Object getReturnedResultTrusted()

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.

Returns:
the result returned by the call to an asynchronous method invocation.

exceptionOccured

public boolean exceptionOccured()

Returns true if an exception occured during the asynchronous method invocation, false otherwise. This method is unsafe related.

Returns:
true if an exception occured during the asynchronous method invocation, false otherwise.


Mandala help mailing list