|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.ubik.rmi.server.command.ResponseLock
public class ResponseLock
A client-side lock on which the caller of an asynchronous call-back waits for the corresponding call-back's response.
| Method Summary | |
|---|---|
java.lang.String |
getId()
Returns this lock's unique identifier. |
void |
release()
Releases this lock (clears it from memory). |
void |
setResponse(java.lang.Object r)
Sets this lock's response. |
java.lang.Object |
waitResponse(long timeout)
Waits for the response of an asynchronous call-back. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.lang.String getId()
String.public void release()
public java.lang.Object waitResponse(long timeout)
throws java.lang.InterruptedException,
ResponseTimeOutException
ResponseTimeOutException is thrown.
timeout - a timeout, in milliseconds.
Object.
ResponseTimeOutException - if no response comes in before the specified timeout.
java.lang.InterruptedException - if the caller is interrupted while waiting for the response.public void setResponse(java.lang.Object r)
an - Object corresponding to an asynchronous response.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||