public static interface StompSession.Receiptable
StompSession.setAutoReceipt(boolean)
Modifier and Type | Method and Description |
---|---|
void |
addReceiptLostTask(Runnable task)
Task to invoke when a receipt is not received in the configured time.
|
void |
addReceiptTask(Consumer<StompHeaders> task)
|
void |
addReceiptTask(Runnable task)
Task to invoke when a receipt is received.
|
String |
getReceiptId()
Return the receipt id, or
null if the STOMP frame for which
the handle was returned did not have a "receipt" header. |
@Nullable String getReceiptId()
null
if the STOMP frame for which
the handle was returned did not have a "receipt" header.void addReceiptTask(Runnable task)
task
- the task to invokeIllegalArgumentException
- if the receiptId is null
void addReceiptTask(Consumer<StompHeaders> task)
task
- the consumer to invokeIllegalArgumentException
- if the receiptId is null
void addReceiptLostTask(Runnable task)
task
- the task to invokeIllegalArgumentException
- if the receiptId is null
StompClientSupport.setReceiptTimeLimit(long)