类的使用
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 MessageBrokerRegistryAbstractMessageBrokerConfiguration. getBrokerRegistry()An accessor for theMessageBrokerRegistrythat ensures its one-time creation and initialization throughAbstractMessageBrokerConfiguration.configureMessageBroker(MessageBrokerRegistry).MessageBrokerRegistryMessageBrokerRegistry. setApplicationDestinationPrefixes(String... prefixes)Configure one or more prefixes to filter destinations targeting application annotated methods.MessageBrokerRegistryMessageBrokerRegistry. setCacheLimit(int cacheLimit)Configure the cache limit to apply for registrations with the broker.MessageBrokerRegistryMessageBrokerRegistry. setPathMatcher(PathMatcher pathMatcher)Configure the PathMatcher to use to match the destinations of incoming messages to@MessageMappingand@SubscribeMappingmethods.MessageBrokerRegistryMessageBrokerRegistry. setPreservePublishOrder(boolean preservePublishOrder)Whether the client must receive messages in the order of publication.MessageBrokerRegistryMessageBrokerRegistry. setUserDestinationPrefix(String destinationPrefix)Configure the prefix used to identify user destinations.参数类型为MessageBrokerRegistry的org.springframework.messaging.simp.config中的方法 修饰符和类型 方法 说明 protected voidAbstractMessageBrokerConfiguration. configureMessageBroker(MessageBrokerRegistry registry)A hook for subclasses to customize message broker configuration through the providedMessageBrokerRegistryinstance.org.springframework.web.socket.config.annotation中MessageBrokerRegistry的使用
参数类型为MessageBrokerRegistry的org.springframework.web.socket.config.annotation中的方法 修饰符和类型 方法 说明 voidAbstractWebSocketMessageBrokerConfigurer. configureMessageBroker(MessageBrokerRegistry registry)已过时。protected voidDelegatingWebSocketMessageBrokerConfiguration. configureMessageBroker(MessageBrokerRegistry registry)default voidWebSocketMessageBrokerConfigurer. configureMessageBroker(MessageBrokerRegistry registry)Configure message broker options.