类的使用
org.springframework.messaging.simp.config.MessageBrokerRegistry
使用MessageBrokerRegistry的程序包 程序包 说明 org.springframework.messaging.simp.config Configuration support for WebSocket messaging using higher level messaging protocols.org.springframework.web.socket.config.annotation Support for annotation-based WebSocket setup in configuration classes.org.springframework.messaging.simp.config中MessageBrokerRegistry的使用
返回MessageBrokerRegistry的org.springframework.messaging.simp.config中的方法 修饰符和类型 方法 说明 protected MessageBrokerRegistry
AbstractMessageBrokerConfiguration. getBrokerRegistry()
An accessor for theMessageBrokerRegistry
that ensures its one-time creation and initialization throughAbstractMessageBrokerConfiguration.configureMessageBroker(MessageBrokerRegistry)
.MessageBrokerRegistry
MessageBrokerRegistry. setApplicationDestinationPrefixes(String... prefixes)
Configure one or more prefixes to filter destinations targeting application annotated methods.MessageBrokerRegistry
MessageBrokerRegistry. setCacheLimit(int cacheLimit)
Configure the cache limit to apply for registrations with the broker.MessageBrokerRegistry
MessageBrokerRegistry. setPathMatcher(PathMatcher pathMatcher)
Configure the PathMatcher to use to match the destinations of incoming messages to@MessageMapping
and@SubscribeMapping
methods.MessageBrokerRegistry
MessageBrokerRegistry. setPreservePublishOrder(boolean preservePublishOrder)
Whether the client must receive messages in the order of publication.MessageBrokerRegistry
MessageBrokerRegistry. setUserDestinationPrefix(String destinationPrefix)
Configure the prefix used to identify user destinations.参数类型为MessageBrokerRegistry的org.springframework.messaging.simp.config中的方法 修饰符和类型 方法 说明 protected void
AbstractMessageBrokerConfiguration. configureMessageBroker(MessageBrokerRegistry registry)
A hook for subclasses to customize message broker configuration through the providedMessageBrokerRegistry
instance.org.springframework.web.socket.config.annotation中MessageBrokerRegistry的使用
参数类型为MessageBrokerRegistry的org.springframework.web.socket.config.annotation中的方法 修饰符和类型 方法 说明 void
AbstractWebSocketMessageBrokerConfigurer. configureMessageBroker(MessageBrokerRegistry registry)
已过时。protected void
DelegatingWebSocketMessageBrokerConfiguration. configureMessageBroker(MessageBrokerRegistry registry)
default void
WebSocketMessageBrokerConfigurer. configureMessageBroker(MessageBrokerRegistry registry)
Configure message broker options.