接口的使用
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的子接口 修饰符和类型 接口 说明 interface
StompSessionHandler
A 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中的类 修饰符和类型 类 说明 class
StompSessionHandlerAdapter
Abstract adapter class forStompSessionHandler
with 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.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.