程序包的使用
org.springframework.messaging.simp.broker
使用org.springframework.messaging.simp.broker的程序包 程序包 说明 org.springframework.messaging.simp.broker Provides a "simple" message broker implementation along with an abstract base class and other supporting types such as a registry for subscriptions.org.springframework.messaging.simp.config Configuration support for WebSocket messaging using higher level messaging protocols.org.springframework.messaging.simp.stomp Generic support for simple messaging protocols (like STOMP).org.springframework.messaging.simp.user Support for handling messages to "user" destinations (i.e. destinations that are unique to a user's sessions), primarily translating the destinations and then forwarding the updated message to the broker.org.springframework.messaging.simp.broker使用的org.springframework.messaging.simp.broker中的类 类 说明 AbstractBrokerMessageHandler Abstract base class for aMessageHandler
that broker messages to registered subscribers.AbstractSubscriptionRegistry Abstract base class for implementations ofSubscriptionRegistry
that looks up information in messages but delegates to abstract methods for the actual storage and retrieval.SubscriptionRegistry A registry of subscription by session that allows looking up subscriptions.org.springframework.messaging.simp.config使用的org.springframework.messaging.simp.broker中的类 类 说明 AbstractBrokerMessageHandler Abstract base class for aMessageHandler
that broker messages to registered subscribers.SimpleBrokerMessageHandler A "simple" message broker that recognizes the message types defined inSimpMessageType
, keeps track of subscriptions with the help of aSubscriptionRegistry
and sends messages to subscribers.org.springframework.messaging.simp.stomp使用的org.springframework.messaging.simp.broker中的类 类 说明 AbstractBrokerMessageHandler Abstract base class for aMessageHandler
that broker messages to registered subscribers.org.springframework.messaging.simp.user使用的org.springframework.messaging.simp.broker中的类 类 说明 BrokerAvailabilityEvent Event raised when a broker's availability changes.