mandala.rami.impl
Interface AsynchronousPolicy

All Known Implementing Classes:
ListAsynchronousPolicy, SynchronousSemantic, ThreadedPolicy, ThreadPooledPolicy

public interface AsynchronousPolicy

This interface defines the policy given to asynchronous method invocation.

This interface contains the call() method used by AsynchronousReferenceImpl when an asynchronous method invocation is requested.

AsynchronousPolicy implementations are responsible of the actual asynchronous invocation of the specified method. We distinguish two distincts asynchronous semantics:

Version:
1.0
Author:
eipi
See Also:
SingleThreadedSemantic, ConcurrentSemantic, FutureServer

Method Summary
 Cancelable call(java.lang.Object object, FutureServer futureServer)
          Invoke a method.
 

Method Detail

call

public Cancelable call(java.lang.Object object,
                       FutureServer futureServer)

Invoke a method.

The method to invoke is the one returned by futureServer.getMethod(). The futureServer object is also used to sets the result once the method returns either normally or abruptly (exception) with the method futureServer.setResult()

Parameters:
object - the object to invoke the method on
futureServer - the future object to use
Returns:
the cancelable object to use to cancel the invocation.
See Also:
FutureServer


Mandala help mailing list