Class WebSocketSessionsRegistry
- java.lang.Object
-
- org.restheart.mongodb.handlers.changestreams.WebSocketSessionsRegistry
-
public class WebSocketSessionsRegistry extends Object
Registry to keep track of web socket sessions- Author:
- Andrea Di Cesare <andrea@softinstigate.com>, Omar Trasatti <omar@softinstigate.com>
-
-
Constructor Summary
Constructors Constructor Description WebSocketSessionsRegistry()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(SessionKey key, ChangeStreamWebSocketSession session)Set<ChangeStreamWebSocketSession>get(SessionKey key)static WebSocketSessionsRegistrygetInstance()Set<SessionKey>keySet()booleanremove(SessionKey key, ChangeStreamWebSocketSession session)
-
-
-
Method Detail
-
getInstance
public static WebSocketSessionsRegistry getInstance()
-
get
public Set<ChangeStreamWebSocketSession> get(SessionKey key)
-
keySet
public Set<SessionKey> keySet()
-
add
public boolean add(SessionKey key, ChangeStreamWebSocketSession session)
-
remove
public boolean remove(SessionKey key, ChangeStreamWebSocketSession session)
-
-