Add putSessionPropertiesIfAbsent to SessionStorage

pull/87/head
Thomas Joußen 2018-07-09 16:53:02 +02:00
parent 8a440528ac
commit 5be0d7c660
1 changed files with 4 additions and 0 deletions

View File

@ -63,6 +63,10 @@ public class SessionStorage {
public SessionProperties getSessionProperties(String sessionId) { return this.sessionProperties.get(sessionId); }
public SessionProperties putSessionPropertiesIfAbsent(String sessionId, SessionProperties sessionProperties) {
return this.sessionProperties.putIfAbsent(sessionId, sessionProperties);
}
/**
* Returns all the participants inside a session.
*