|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.ubik.rmi.server.command.Response
public class Response
Models a "response": i.e.: the return value of an asynchronous call-back. An instance of this class in fact encapsulate the return value itself, plus the command identifier of the response at the originating host.
| Constructor Summary | |
|---|---|
Response(java.lang.String cmdId,
java.lang.Object response)
Constructor for Response. |
|
| Method Summary | |
|---|---|
java.lang.Object |
execute()
Performs this instance's logic. |
java.lang.Object |
get()
This response's return value. |
java.lang.String |
getId()
Returns the command identifier that this response corresponds to. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Response(java.lang.String cmdId,
java.lang.Object response)
| Method Detail |
|---|
public java.lang.String getId()
public java.lang.Object get()
Object or null if the
return value of the original asynchronous call-back is null.
public java.lang.Object execute()
throws java.lang.Throwable
Executable
execute in interface Executablenull or some return value, if it applies.
java.lang.Throwable - if an error occurs in this command's execution.Executable.execute()public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||