接口的使用
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.SubscriptionDefaultStompSession. subscribe(String destination, StompFrameHandler handler)StompSession.SubscriptionDefaultStompSession. subscribe(StompHeaders headers, StompFrameHandler handler)StompSession.SubscriptionStompSession. subscribe(String destination, StompFrameHandler handler)Subscribe to the given destination by sending a SUBSCRIBE frame and handle received messages with the specifiedStompFrameHandler.StompSession.SubscriptionStompSession. subscribe(StompHeaders headers, StompFrameHandler handler)An overloaded version ofStompSession.subscribe(String, StompFrameHandler)with fullStompHeadersinstead of just a destination.