|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The extended version of the Invoker that supports
asynchronous method invocations. Implementations should return instance
of this interface from the RemoteRef.bind(edu.emory.mathcs.rmix.Parameters, java.lang.ClassLoader, boolean) call if they wish to
support asynchronous invocations.
| Method Summary | |
Rmix.Future |
invokeAsync(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] params)
Schedules the asynchronous remote method invocation that uses the Rmix.Future object to indicate completion. |
Rmix.Future |
invokeCbAsync(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] params,
Callback callback)
Schedules the asynchronous remote method invocation that uses the Rmix.Future object and the specified callback to indicate
completion. |
void |
invokeOneWay(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] params)
Schedules the one-way remote method invocation that offers no indication of completion. |
| Methods inherited from interface edu.emory.mathcs.rmix.Invoker |
getBindParameters, getInterfaces, getParameter, getRef, invoke, setParameter |
| Method Detail |
public Rmix.Future invokeAsync(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] params)
throws java.rmi.RemoteException
Rmix.Future object to indicate completion. This method
must ensure that params are marshalled or copied before
returning, so that subsequent changes to the state of
params do not affect the invocation that may be still
in progress. Additionally, the implementation must ensure that
asynchronous calls performed from the same thread on the same stub
are serialized on the server side
The requested method must belong to one of the interfaces available
through Invoker.getInterfaces().
proxy - the client-side proxy that originated the invocation.method - the remote method to invoke.params - invocation parameters.
java.rmi.RemoteException - if the call could not be performed.
public Rmix.Future invokeCbAsync(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] params,
Callback callback)
throws java.rmi.RemoteException
Rmix.Future object and the specified callback to indicate
completion. This method
must ensure that params are marshalled or copied before
returning, so that subsequent changes to the state of
params do not affect the invocation that may be still
in progress.
The requested method must belong to one of the interfaces available
through Invoker.getInterfaces().
proxy - the client-side proxy that originated the invocation.method - the remote method to invoke.params - invocation parameters.callback - the callback to receive notification once the call
completes.
java.rmi.RemoteException - if the call could not be performed.
public void invokeOneWay(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] params)
throws java.rmi.RemoteException
params are marshalled or copied before
returning, so that subsequent changes to the state of
params do not affect the invocation that may be still
in progress.
The requested method must belong to one of the interfaces available
through Invoker.getInterfaces().
proxy - the client-side proxy that originated the invocation.method - the remote method to invoke.params - invocation parameters.
java.rmi.RemoteException - if the call could not be performed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||