|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IStubFuture
A basic interface for asynchronous responses.
Method Summary | |
---|---|
void |
addRemoteObserver(guarana.util.observer.remote.IRemoteObsever observer)
Adds a remote observer to the future stub. |
void |
destroy()
Unbind and removes this object from the RMI Registry if it is bound. |
String |
getId()
Returns the unique ID that identifies this future. |
Message<?> |
getResult()
Returns the response message from this future. |
boolean |
isDone()
Checks if the future contains the response message. |
void |
setResult(Message<?> message)
Sets a response message to this future. |
Method Detail |
---|
String getId() throws RemoteException
RemoteException
- if any remote exception is raised during this method execution.Message<?> getResult() throws RemoteException
RemoteException
- if any remote exception is raised during this method execution.void setResult(Message<?> message) throws RemoteException
message
- the response message.
RemoteException
- if any remote exception is raised during this method execution.boolean isDone() throws RemoteException
RemoteException
- if any remote exception is raised during this method execution.void addRemoteObserver(guarana.util.observer.remote.IRemoteObsever observer) throws RemoteException
observer
- the remote observer.
RemoteException
- if any remote exception is raised during this method execution.void destroy() throws RemoteException, NotBoundException, AccessException, NoSuchObjectException
RemoteException
- if a remote exception is raised during this method execution.
NotBoundException
- if an attempt is made to lookup or unbind in the registry a name that has no associated binding.
AccessException
- if the method was invoked from a non-local host, then an AccessException is thrown.
NoSuchObjectException
- if an attempt is made to invoke a method on an object that no longer exists in the remote virtual machine.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |