|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Asynchronous reference on an object.
This interface defines how the methods of the object returned by
getObject()
can be invoked asynchronously with the
call()
method.
Implementation classes must implement a variant of the singleton
design pattern as defined in the mandala.rami
package.
Each invocation of call()
uses a
Callback
providing a done
method which
is called once a reflexive asynchronous method invocation has
terminated.
FutureClient
,
CallbackManager
,
Callback
Method Summary | |
FutureClient |
call(MethodOp method,
Object[] args)
Call a method asynchronously. |
FutureClient |
call(MethodOp method,
Object[] args,
Callback callback)
Call a method asynchronously. |
CallbackManager |
getCallbackManager()
Returns the CallbackManager of this
instance. |
Methods inherited from interface mandala.rami.Reference |
getObject |
Method Detail |
public FutureClient call(MethodOp method, Object[] args)
Call a method asynchronously.
Since the call is asynchronous, exceptions are not handled in an
usual way. Implementations must provide a mechanism conform to the
FutureClient
specification.
The method Callback.done(InvocationInfo,
MethodResult)
of the instance returned by CallbackManager.getCallback()
is called once
the reflexive asynchronous method invocation is done.
method
- the method to callargs
- method's parameters
FutureClient
object.FutureClient
,
CallbackManager
,
Callback
public FutureClient call(MethodOp method, Object[] args, Callback callback)
Call a method asynchronously.
Since the call is asynchronous, exceptions are not handled in an
usual way. Implementations may provide a mechanism conform to the
FutureClient
specification.
The method done
of the specified Callback
is called once the reflexive asynchronous method invocation is done.
The Callback
instance returned by CallbackManager.getCallback()
is not
used.
method
- the method to callargs
- method's parameterscallback
- the callback to use.
FutureClient
object.FutureClient
,
Callback
public CallbackManager getCallbackManager()
Returns the CallbackManager
of this
instance.
CallbackManager
of this
instance.CallbackManager
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |