程序包 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.
接口概要 接口 说明 SubscriptionRegistry A registry of subscription by session that allows looking up subscriptions.类概要 类 说明 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.BrokerAvailabilityEvent Event raised when a broker's availability changes.DefaultSubscriptionRegistry Implementation ofSubscriptionRegistry
that stores subscriptions in memory and uses aPathMatcher
for matching destinations.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.