|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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:
SingleThreadedSemantic where only one thread can cross the
underlying object of multiple asynchronous method invocations;
ConcurrentSemantic where multiple threads can cross the
underlying object of multiple asynchronous method invocations.
SingleThreadedSemantic,
ConcurrentSemantic,
FutureServer| Method Summary | |
Cancelable |
call(Object object,
FutureServer futureServer)
Invoke a method. |
| Method Detail |
public Cancelable call(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()
object - the object to invoke the method onfutureServer - the future object to use
FutureServer
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||