Interface StompSession.Subscription
- All Superinterfaces:
StompSession.Receiptable
- Enclosing interface:
StompSession
A handle to use to unsubscribe or to track a receipt.
- Since:
- 4.2
- Author:
- Rossen Stoyanchev
-
Method Summary
Modifier and TypeMethodDescriptionReturn the headers used on the SUBSCRIBE frame.Return the id for the subscription.Remove the subscription by sending an UNSUBSCRIBE frame.unsubscribe(@Nullable StompHeaders headers) Alternative tounsubscribe()with additional custom headers to send to the server.Methods inherited from interface StompSession.Receiptable
addReceiptLostTask, addReceiptTask, addReceiptTask, getReceiptId
-
Method Details
-
getSubscriptionId
-
getSubscriptionHeaders
-
unsubscribe
StompSession.Receiptable unsubscribe()Remove the subscription by sending an UNSUBSCRIBE frame.As of 7.0, this method returns
StompSession.Receiptable. -
unsubscribe
Alternative tounsubscribe()with additional custom headers to send to the server. Note, however, there is no need to set the subscription id.As of 7.0, this method returns
StompSession.Receiptable.- Parameters:
headers- the custom headers, if any- Since:
- 5.0
-