|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.transport.tcp.ResponseHolder
public class ResponseHolder
ResponseHolder utility
Field Summary | |
---|---|
protected java.lang.Object |
lock
|
protected boolean |
notified
|
protected Response |
response
|
Constructor Summary | |
---|---|
ResponseHolder()
Construct a receipt holder |
Method Summary | |
---|---|
void |
close()
close this holder |
Response |
getResponse()
Get the Response |
Response |
getResponse(int timeout)
wait upto timeout timeout ms to get a receipt |
void |
setResponse(Response r)
Set the Response for this holder |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Response response
protected java.lang.Object lock
protected boolean notified
Constructor Detail |
---|
public ResponseHolder()
Method Detail |
---|
public void setResponse(Response r)
r
- public Response getResponse()
public Response getResponse(int timeout)
timeout
timeout ms to get a receipt
timeout
-
public void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |