接口的使用
org.springframework.messaging.simp.stomp.StompSession.Subscription
使用StompSession.Subscription的程序包 程序包 说明 org.springframework.messaging.simp.stomp Generic support for simple messaging protocols (like STOMP).org.springframework.messaging.simp.stomp中StompSession.Subscription的使用
返回StompSession.Subscription的org.springframework.messaging.simp.stomp中的方法 修饰符和类型 方法 说明 StompSession.Subscription
DefaultStompSession. subscribe(String destination, StompFrameHandler handler)
StompSession.Subscription
DefaultStompSession. subscribe(StompHeaders headers, StompFrameHandler handler)
StompSession.Subscription
StompSession. subscribe(String destination, StompFrameHandler handler)
Subscribe to the given destination by sending a SUBSCRIBE frame and handle received messages with the specifiedStompFrameHandler
.StompSession.Subscription
StompSession. subscribe(StompHeaders headers, StompFrameHandler handler)
An overloaded version ofStompSession.subscribe(String, StompFrameHandler)
with fullStompHeaders
instead of just a destination.