Interface StompSession.Subscription
- All Superinterfaces:
- StompSession.Receiptable
- Enclosing interface:
- StompSession
A handle to use to unsubscribe or to track a receipt.
- 
Method SummaryModifier and TypeMethodDescriptionReturn the headers used on the SUBSCRIBE frame.Return the id for the subscription.voidRemove the subscription by sending an UNSUBSCRIBE frame.voidunsubscribe(StompHeaders headers) Alternative tounsubscribe()with additional custom headers to send to the server.Methods inherited from interface org.springframework.messaging.simp.stomp.StompSession.ReceiptableaddReceiptLostTask, addReceiptTask, addReceiptTask, getReceiptId
- 
Method Details- 
getSubscriptionIdReturn the id for the subscription.
- 
getSubscriptionHeadersStompHeaders getSubscriptionHeaders()Return the headers used on the SUBSCRIBE frame.- Since:
- 5.0
 
- 
unsubscribevoid unsubscribe()Remove the subscription by sending an UNSUBSCRIBE frame.
- 
unsubscribeAlternative 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
 
 
-