public interface WebSocketMessageBrokerConfigurer
@EnableWebSocketMessageBroker
.Modifier and Type | Method and Description |
---|---|
void |
configureClientInboundChannel(ChannelRegistration registration)
Configure the
MessageChannel used for
incoming messages from WebSocket clients. |
void |
configureClientOutboundChannel(ChannelRegistration registration)
Configure the
MessageChannel used for
incoming messages from WebSocket clients. |
void |
configureMessageBroker(MessageBrokerRegistry registry)
Configure message broker options.
|
boolean |
configureMessageConverters(List<MessageConverter> messageConverters)
Configure the message converters to use when extracting the payload of
messages in annotated methods and when sending messages (e.g.
|
void |
registerStompEndpoints(StompEndpointRegistry registry)
Configure STOMP over WebSocket endpoints.
|
void registerStompEndpoints(StompEndpointRegistry registry)
void configureClientInboundChannel(ChannelRegistration registration)
MessageChannel
used for
incoming messages from WebSocket clients. By default the channel is backed
by a thread pool of size 1. It is recommended to customize thread pool
settings for production use.void configureClientOutboundChannel(ChannelRegistration registration)
MessageChannel
used for
incoming messages from WebSocket clients. By default the channel is backed
by a thread pool of size 1. It is recommended to customize thread pool
settings for production use.boolean configureMessageConverters(List<MessageConverter> messageConverters)
The provided list, initially empty, can be used to add message converters while the boolean return value is used to determine if default message should be added as well.
messageConverters
- initially an empty list of convertersvoid configureMessageBroker(MessageBrokerRegistry registry)