接口的使用
org.springframework.messaging.simp.stomp.StompFrameHandler
使用StompFrameHandler的程序包 程序包 说明 org.springframework.messaging.simp.stomp Generic support for simple messaging protocols (like STOMP).org.springframework.messaging.simp.stomp中StompFrameHandler的使用
org.springframework.messaging.simp.stomp中StompFrameHandler的子接口 修饰符和类型 接口 说明 interfaceStompSessionHandlerA contract for client STOMP session lifecycle events including a callback when the session is established and notifications of transport or message handling failures.实现StompFrameHandler的org.springframework.messaging.simp.stomp中的类 修饰符和类型 类 说明 classStompSessionHandlerAdapterAbstract adapter class forStompSessionHandlerwith mostly empty implementation methods except forStompSessionHandlerAdapter.getPayloadType(org.springframework.messaging.simp.stomp.StompHeaders)which returns String as the default Object type expected for STOMP ERROR frame payloads.参数类型为StompFrameHandler的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.