org.springframework.web.socket.messaging.DefaultSimpUserRegistry Java Examples
The following examples show how to use
org.springframework.web.socket.messaging.DefaultSimpUserRegistry.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WebSocketMessageBrokerConfigurationSupport.java From spring-analysis-note with MIT License | 5 votes |
@Override protected SimpUserRegistry createLocalUserRegistry(@Nullable Integer order) { DefaultSimpUserRegistry registry = new DefaultSimpUserRegistry(); if (order != null) { registry.setOrder(order); } return registry; }
Example #2
Source File: WebSocketMessageBrokerConfigurationSupport.java From java-technology-stack with MIT License | 5 votes |
@Override protected SimpUserRegistry createLocalUserRegistry(@Nullable Integer order) { DefaultSimpUserRegistry registry = new DefaultSimpUserRegistry(); if (order != null) { registry.setOrder(order); } return registry; }
Example #3
Source File: WebSocketMessageBrokerConfigurationSupport.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Override @SuppressWarnings("deprecation") protected SimpUserRegistry createLocalUserRegistry() { org.springframework.messaging.simp.user.UserSessionRegistry sessionRegistry = userSessionRegistry(); if (sessionRegistry != null) { return new UserSessionRegistryAdapter(sessionRegistry); } return new DefaultSimpUserRegistry(); }
Example #4
Source File: WebsocketConfig.java From spring-boot-protocol with Apache License 2.0 | 4 votes |
/** * 负责管理用户信息 * @return */ @Bean @ConditionalOnMissingBean(SimpUserRegistry.class) public SimpUserRegistry userRegistry() { return new DefaultSimpUserRegistry(); }
Example #5
Source File: SpringWebsocketsApplication.java From training with MIT License | 4 votes |
@Bean public DefaultSimpUserRegistry userRegistry() { return new DefaultSimpUserRegistry(); }