mandala.rami
Interface ResultUpdater

All Known Subinterfaces:
FutureServer, RemoteFutureServer, RemoteResultUpdater
All Known Implementing Classes:
RemoteResultUpdaterProxy

public interface ResultUpdater

This interface provides methods to update a future object used to handle an asynchronous method invocation.

This interface is not intended to be used by end-user.

This interface is dedicated to set some fields of its implementation business part such as the result or the exception thrown during the asynchronous call.

Version:
1.0

Method Summary
 void setCalleeThread(ThreadOp callee)
          Set the thread which has been created for the invocation of the method.
 void setResult(Object result, Throwable throwable)
          Set the result of the asynchronous method invocation.
 

Method Detail

setResult

public void setResult(Object result,
                      Throwable throwable)

Set the result of the asynchronous method invocation.

The result may be either the returned value of the method or the thrown exception.

Result must be considered available after this call.

Parameters:
result - the result returned by an asynchronous method invocation, which can be null.
throwable - the exception thrown by an asynchronous method invocation, a null value is considered as no exception has been thrown.

setCalleeThread

public void setCalleeThread(ThreadOp callee)

Set the thread which has been created for the invocation of the method.

Parameters:
callee - the thread which has been created for the invocation of the method


Mandala help mailing list