Interface StompSession.Subscription
- All Superinterfaces:
StompSession.Receiptable
- Enclosing interface:
- StompSession
A handle to use to unsubscribe or to track a receipt.
-
Method Summary
Modifier and TypeMethodDescriptionReturn the headers used on the SUBSCRIBE frame.Return the id for the subscription.void
Remove the subscription by sending an UNSUBSCRIBE frame.void
unsubscribe
(StompHeaders headers) Alternative tounsubscribe()
with additional custom headers to send to the server.Methods inherited from interface org.springframework.messaging.simp.stomp.StompSession.Receiptable
addReceiptLostTask, addReceiptTask, getReceiptId
-
Method Details
-
getSubscriptionId
Return the id for the subscription. -
getSubscriptionHeaders
StompHeaders getSubscriptionHeaders()Return the headers used on the SUBSCRIBE frame.- Since:
- 5.0
-
unsubscribe
void unsubscribe()Remove the subscription by sending an UNSUBSCRIBE frame. -
unsubscribe
Alternative tounsubscribe()
with additional custom headers to send to the server.Note: There is no need to set the subscription id.
- Parameters:
headers
- the custom headers, if any- Since:
- 5.0
-