org.springframework.messaging.simp.user.SimpSession Java Examples

The following examples show how to use org.springframework.messaging.simp.user.SimpSession. 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: DefaultSimpUserRegistry.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Override
@Nullable
public SimpSession getSession(@Nullable String sessionId) {
	return (sessionId != null ? this.userSessions.get(sessionId) : null);
}
 
Example #2
Source File: DefaultSimpUserRegistry.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Override
public Set<SimpSession> getSessions() {
	return new HashSet<>(this.userSessions.values());
}
 
Example #3
Source File: DefaultSimpUserRegistry.java    From spring-analysis-note with MIT License 4 votes vote down vote up
void addSession(SimpSession session) {
	this.userSessions.put(session.getId(), session);
}
 
Example #4
Source File: DefaultSimpUserRegistry.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Override
@Nullable
public SimpSession getSession(@Nullable String sessionId) {
	return (sessionId != null ? this.userSessions.get(sessionId) : null);
}
 
Example #5
Source File: DefaultSimpUserRegistry.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Override
public Set<SimpSession> getSessions() {
	return new HashSet<>(this.userSessions.values());
}
 
Example #6
Source File: DefaultSimpUserRegistry.java    From java-technology-stack with MIT License 4 votes vote down vote up
void addSession(SimpSession session) {
	this.userSessions.put(session.getId(), session);
}
 
Example #7
Source File: DefaultSimpUserRegistry.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
@Override
public SimpSession getSession(String sessionId) {
	return (sessionId != null ? this.sessions.get(sessionId) : null);
}
 
Example #8
Source File: DefaultSimpUserRegistry.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
@Override
public Set<SimpSession> getSessions() {
	return new HashSet<SimpSession>(this.sessions.values());
}