| Package | Description | 
|---|---|
| org.springframework.messaging | Support for working with messaging APIs and protocols. | 
| org.springframework.messaging.handler.invocation | Common infrastructure for invoking message handler methods. | 
| org.springframework.messaging.simp.annotation.support | Support classes for handling messages from simple messaging protocols
 (like STOMP). | 
| 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. | 
| org.springframework.messaging.support | Provides implementations of  Messagealong with
 a MessageBuilder and MessageHeaderAccessor for building and working with messages and
 message headers, as well as variousMessageChannelimplementations and channel interceptor support. | 
| org.springframework.web.socket.messaging | WebSocket integration for Spring's messaging module. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | SubscribableChannel. subscribe(MessageHandler handler)Register a message handler. | 
| boolean | SubscribableChannel. unsubscribe(MessageHandler handler)Un-register a message handler. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AbstractMethodMessageHandler<T>Abstract base class for HandlerMethod-based message handling. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | SimpAnnotationMethodMessageHandlerA handler for messages delegating to  @MessageMappingand@SubscribeMappingannotated methods. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AbstractBrokerMessageHandlerAbstract base class for a  MessageHandlerthat broker messages to
 registered subscribers. | 
| class  | SimpleBrokerMessageHandlerA "simple" message broker that recognizes the message types defined in
  SimpMessageType, keeps track of subscriptions with the help of aSubscriptionRegistryand sends messages to subscribers. | 
| Modifier and Type | Method and Description | 
|---|---|
| MessageHandler | AbstractMessageBrokerConfiguration. userRegistryMessageHandler(AbstractSubscribableChannel clientInboundChannel,
                          AbstractSubscribableChannel clientOutboundChannel,
                          SimpUserRegistry userRegistry,
                          SimpMessagingTemplate brokerMessagingTemplate,
                          TaskScheduler scheduler) | 
| Modifier and Type | Method and Description | 
|---|---|
| AbstractBrokerMessageHandler | AbstractMessageBrokerConfiguration. stompBrokerRelayMessageHandler(AbstractSubscribableChannel clientInboundChannel,
                              AbstractSubscribableChannel clientOutboundChannel,
                              AbstractSubscribableChannel brokerChannel,
                              UserDestinationMessageHandler userDestinationMessageHandler,
                              MessageHandler userRegistryMessageHandler,
                              UserDestinationResolver userDestinationResolver) | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | StompBrokerRelayMessageHandlerA  MessageHandlerthat handles messages by
 forwarding them to a STOMP broker. | 
| Modifier and Type | Method and Description | 
|---|---|
| Map<String,MessageHandler> | StompBrokerRelayMessageHandler. getSystemSubscriptions()Return the configured map with subscriptions on the "system" connection. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | StompBrokerRelayMessageHandler. setSystemSubscriptions(Map<String,MessageHandler> subscriptions)Configure one more destinations to subscribe to on the shared "system"
 connection along with MessageHandler's to handle received messages. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | UserDestinationMessageHandlerMessageHandlerwith support for "user" destinations. | 
| class  | UserRegistryMessageHandlerMessageHandlerthat handles user registry broadcasts from other
 application servers and periodically broadcasts the content of the local
 user registry. | 
| Modifier and Type | Method and Description | 
|---|---|
| MessageHandler | MessageHandlingRunnable. getMessageHandler()Return the MessageHandler that will be used to handle the message. | 
| Modifier and Type | Method and Description | 
|---|---|
| Set<MessageHandler> | AbstractSubscribableChannel. getSubscribers() | 
| Modifier and Type | Method and Description | 
|---|---|
| default void | ExecutorChannelInterceptor. afterMessageHandled(Message<?> message,
                   MessageChannel channel,
                   MessageHandler handler,
                   Exception ex)Invoked inside the  Runnablesubmitted to the Executor after calling
 the target MessageHandler regardless of the outcome (i.e. | 
| default Message<?> | ExecutorChannelInterceptor. beforeHandle(Message<?> message,
            MessageChannel channel,
            MessageHandler handler)Invoked inside the  Runnablesubmitted to the Executor just before
 calling the target MessageHandler to handle the message. | 
| boolean | AbstractSubscribableChannel. hasSubscription(MessageHandler handler) | 
| boolean | AbstractSubscribableChannel. subscribe(MessageHandler handler) | 
| boolean | AbstractSubscribableChannel. unsubscribe(MessageHandler handler) | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | SubProtocolWebSocketHandlerAn implementation of  WebSocketHandlerthat delegates incoming WebSocket
 messages to aSubProtocolHandleralong with aMessageChannelto which
 the sub-protocol handler can send messages from WebSocket clients to the application. | 
| class  | WebSocketAnnotationMethodMessageHandlerA subclass of  SimpAnnotationMethodMessageHandlerto provide support
 forControllerAdvicewith global@MessageExceptionHandlermethods. |