public abstract class AbstractWebSocketMessageBrokerConfigurer extends Object implements WebSocketMessageBrokerConfigurer
WebSocketMessageBrokerConfigurer
implementations providing empty method implementations for optional methods.| Constructor and Description |
|---|
AbstractWebSocketMessageBrokerConfigurer() |
| Modifier and Type | Method and Description |
|---|---|
void |
configureClientInboundChannel(org.springframework.messaging.simp.config.ChannelRegistration registration)
Configure the
MessageChannel used for
incoming messages from WebSocket clients. |
void |
configureClientOutboundChannel(org.springframework.messaging.simp.config.ChannelRegistration registration)
Configure the
MessageChannel used for
incoming messages from WebSocket clients. |
void |
configureMessageBroker(org.springframework.messaging.simp.config.MessageBrokerRegistry registry)
Configure message broker options.
|
boolean |
configureMessageConverters(List<org.springframework.messaging.converter.MessageConverter> messageConverters)
Configure the message converters to use when extracting the payload of
messages in annotated methods and when sending messages (e.g.
|
void |
configureWebSocketTransport(WebSocketTransportRegistration registration)
Configure options related to the processing of messages received from and
sent to WebSocket clients.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregisterStompEndpointspublic AbstractWebSocketMessageBrokerConfigurer()
public void configureWebSocketTransport(WebSocketTransportRegistration registration)
WebSocketMessageBrokerConfigurerconfigureWebSocketTransport in interface WebSocketMessageBrokerConfigurerpublic void configureClientInboundChannel(org.springframework.messaging.simp.config.ChannelRegistration registration)
WebSocketMessageBrokerConfigurerMessageChannel 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.configureClientInboundChannel in interface WebSocketMessageBrokerConfigurerpublic void configureClientOutboundChannel(org.springframework.messaging.simp.config.ChannelRegistration registration)
WebSocketMessageBrokerConfigurerMessageChannel 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.configureClientOutboundChannel in interface WebSocketMessageBrokerConfigurerpublic boolean configureMessageConverters(List<org.springframework.messaging.converter.MessageConverter> messageConverters)
WebSocketMessageBrokerConfigurerThe 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.
configureMessageConverters in interface WebSocketMessageBrokerConfigurermessageConverters - initially an empty list of converterspublic void configureMessageBroker(org.springframework.messaging.simp.config.MessageBrokerRegistry registry)
WebSocketMessageBrokerConfigurerconfigureMessageBroker in interface WebSocketMessageBrokerConfigurer