接口 StompSession.Receiptable
- 所有已知子接口:
StompSession.Subscription
- 封闭接口:
- StompSession
public static interface StompSession.Receiptable
A handle to use to track receipts.
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 void
addReceiptLostTask(Runnable runnable)
Task to invoke when a receipt is not received in the configured time.void
addReceiptTask(Runnable runnable)
Task to invoke when a receipt is received.String
getReceiptId()
Return the receipt id, ornull
if the STOMP frame for which the handle was returned did not have a "receipt" header.
方法详细资料
getReceiptId
String getReceiptId()
Return the receipt id, ornull
if the STOMP frame for which the handle was returned did not have a "receipt" header.
addReceiptTask
void addReceiptTask(Runnable runnable)
Task to invoke when a receipt is received.- 抛出:
IllegalArgumentException
- if the receiptId isnull
addReceiptLostTask
void addReceiptLostTask(Runnable runnable)
Task to invoke when a receipt is not received in the configured time.- 抛出:
IllegalArgumentException
- if the receiptId isnull
- 另请参阅:
StompClientSupport.setReceiptTimeLimit(long)