Interface StompSession.Receiptable
- All Known Subinterfaces:
- StompSession.Subscription
- Enclosing interface:
- StompSession
public static interface StompSession.Receiptable
A handle to use to track receipts.
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddReceiptLostTask(Runnable task) Task to invoke when a receipt is not received in the configured time.voidaddReceiptTask(Runnable task) Task to invoke when a receipt is received.voidaddReceiptTask(Consumer<StompHeaders> task) Return the receipt id, ornullif the STOMP frame for which the handle was returned did not have a "receipt" header.
- 
Method Details- 
getReceiptIdReturn the receipt id, ornullif the STOMP frame for which the handle was returned did not have a "receipt" header.
- 
addReceiptTaskTask to invoke when a receipt is received.- Parameters:
- task- the task to invoke
- Throws:
- IllegalArgumentException- if the receiptId is- null
 
- 
addReceiptTask- Parameters:
- task- the consumer to invoke
- Throws:
- IllegalArgumentException- if the receiptId is- null
- Since:
- 5.3.23
 
- 
addReceiptLostTaskTask to invoke when a receipt is not received in the configured time.- Parameters:
- task- the task to invoke
- Throws:
- IllegalArgumentException- if the receiptId is- null
- See Also:
 
 
-