Uses of Interface
org.springframework.messaging.MessageHandler
Package
Description
Support for working with messaging APIs and protocols.
Common infrastructure for invoking message handler methods.
Support classes for handling messages from simple messaging protocols
(like STOMP).
Provides a "simple" message broker implementation along with an abstract base
class and other supporting types such as a registry for subscriptions.
Configuration support for WebSocket messaging using higher level messaging protocols.
Generic support for simple messaging protocols (like STOMP).
Support for handling messages to "user" destinations (i.e.
Provides implementations of
Message
along with
a MessageBuilder and MessageHeaderAccessor for building and working with messages and
message headers, as well as various MessageChannel
implementations and channel interceptor support.WebSocket integration for Spring's messaging module.
-
Uses of MessageHandler in org.springframework.messaging
Modifier and TypeMethodDescriptionboolean
SubscribableChannel.subscribe
(MessageHandler handler) Register a message handler.boolean
SubscribableChannel.unsubscribe
(MessageHandler handler) Un-register a message handler. -
Uses of MessageHandler in org.springframework.messaging.handler.invocation
Modifier and TypeClassDescriptionclass
Abstract base class for HandlerMethod-based message handling. -
Uses of MessageHandler in org.springframework.messaging.simp.annotation.support
Modifier and TypeClassDescriptionclass
A handler for messages delegating to@MessageMapping
and@SubscribeMapping
annotated methods. -
Uses of MessageHandler in org.springframework.messaging.simp.broker
Modifier and TypeClassDescriptionclass
Abstract base class for aMessageHandler
that broker messages to registered subscribers.class
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. -
Uses of MessageHandler in org.springframework.messaging.simp.config
Modifier and TypeMethodDescriptionAbstractMessageBrokerConfiguration.userRegistryMessageHandler
(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel, SimpUserRegistry userRegistry, SimpMessagingTemplate brokerMessagingTemplate, TaskScheduler messageBrokerTaskScheduler) Modifier and TypeMethodDescriptionAbstractMessageBrokerConfiguration.stompBrokerRelayMessageHandler
(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel, AbstractSubscribableChannel brokerChannel, UserDestinationMessageHandler userDestinationMessageHandler, MessageHandler userRegistryMessageHandler, UserDestinationResolver userDestinationResolver) -
Uses of MessageHandler in org.springframework.messaging.simp.stomp
Modifier and TypeClassDescriptionclass
AMessageHandler
that handles messages by forwarding them to a STOMP broker.Modifier and TypeMethodDescriptionStompBrokerRelayMessageHandler.getSystemSubscriptions()
Return the configured map with subscriptions on the "system" connection.Modifier and TypeMethodDescriptionvoid
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. -
Uses of MessageHandler in org.springframework.messaging.simp.user
Modifier and TypeClassDescriptionclass
MessageHandler
with support for "user" destinations.class
MessageHandler
that handles user registry broadcasts from other application servers and periodically broadcasts the content of the local user registry. -
Uses of MessageHandler in org.springframework.messaging.support
Modifier and TypeMethodDescriptionMessageHandlingRunnable.getMessageHandler()
Return the MessageHandler that will be used to handle the message.Modifier and TypeMethodDescriptiondefault void
ExecutorChannelInterceptor.afterMessageHandled
(Message<?> message, MessageChannel channel, MessageHandler handler, Exception ex) Invoked inside theRunnable
submitted 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 theRunnable
submitted 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) -
Uses of MessageHandler in org.springframework.web.socket.messaging
Modifier and TypeClassDescriptionclass
An implementation ofWebSocketHandler
that delegates incoming WebSocket messages to aSubProtocolHandler
along with aMessageChannel
to which the sub-protocol handler can send messages from WebSocket clients to the application.class
A sub-class ofSimpAnnotationMethodMessageHandler
to provide support forControllerAdvice
with global@MessageExceptionHandler
methods.