org.springframework.session.ReactiveMapSessionRepository Java Examples

The following examples show how to use org.springframework.session.ReactiveMapSessionRepository. 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: SessionConfig.java    From spring-reactive-sample with GNU General Public License v3.0 4 votes vote down vote up
@Bean
public ReactiveSessionRepository sessionRepository() {
    return new ReactiveMapSessionRepository( new ConcurrentHashMap<>());
}
 
Example #2
Source File: SessionConfig.java    From spring-reactive-sample with GNU General Public License v3.0 4 votes vote down vote up
@Bean
public ReactiveSessionRepository sessionRepository() {
    return new ReactiveMapSessionRepository(new ConcurrentHashMap<>());
}
 
Example #3
Source File: SpringWebSessionConfig.java    From spring-session with Apache License 2.0 4 votes vote down vote up
@Bean
public ReactiveSessionRepository reactiveSessionRepository() {
	return new ReactiveMapSessionRepository(new ConcurrentHashMap<>());
}
 
Example #4
Source File: SpringWebSessionConfigurationTests.java    From spring-session with Apache License 2.0 4 votes vote down vote up
/**
 * Use Reactor-friendly, {@link java.util.Map}-backed
 * {@link ReactiveSessionRepository} for test purposes.
 */
@Bean
ReactiveSessionRepository<?> reactiveSessionRepository() {
	return new ReactiveMapSessionRepository(new HashMap<>());
}
 
Example #5
Source File: SpringWebSessionConfigurationTests.java    From spring-session with Apache License 2.0 4 votes vote down vote up
@Bean
ReactiveSessionRepository<?> reactiveSessionRepository() {
	return new ReactiveMapSessionRepository(new HashMap<>());
}
 
Example #6
Source File: SessionConfig.java    From tutorials with MIT License 4 votes vote down vote up
@Bean
public ReactiveSessionRepository reactiveSessionRepository() {
    return new ReactiveMapSessionRepository(new ConcurrentHashMap<>());
}