|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.activemq.message.ReceiptHolder
ReceiptHolder is a utility class used for waiting for receipts from Packets sent to the broker
Field Summary | |
protected Object |
lock
|
protected boolean |
notified
|
protected Receipt |
receipt
|
Constructor Summary | |
ReceiptHolder()
Construct a receipt holder |
Method Summary | |
void |
close()
close this holder |
Receipt |
getReceipt()
Get the Receipt |
Receipt |
getReceipt(int timeout)
wait upto timeout timeout ms to get a receipt |
void |
setReceipt(Receipt r)
Set the Receipt for this holder |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Receipt receipt
protected Object lock
protected boolean notified
Constructor Detail |
public ReceiptHolder()
Method Detail |
public void setReceipt(Receipt r)
r
- public Receipt getReceipt()
public Receipt getReceipt(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 |