Class ChangeStreamsRegistry
- java.lang.Object
-
- org.restheart.mongodb.handlers.changestreams.ChangeStreamsRegistry
-
public class ChangeStreamsRegistry extends Object
Registry to keep track of open change streasms wraps a map to easily allow to get corresponding SessionInfo that encapsulates db, coll, and opName- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
-
Constructor Summary
Constructors Constructor Description ChangeStreamsRegistry()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsKey(SessionKey key)SessionInfoget(SessionKey key)static ChangeStreamsRegistrygetInstance()Set<SessionKey>getSessionKeysOnCollection(String db, String coll)Set<SessionKey>getSessionKeysOnDb(String db)Set<SessionKey>getSessionKeysOnOperation(SessionInfo db, String coll, String operation)Set<SessionKey>keySet()SessionInfoput(SessionKey key, SessionInfo info)SessionInforemove(SessionKey key)
-
-
-
Method Detail
-
getInstance
public static ChangeStreamsRegistry getInstance()
-
get
public SessionInfo get(SessionKey key)
-
keySet
public Set<SessionKey> keySet()
-
put
public SessionInfo put(SessionKey key, SessionInfo info)
-
containsKey
public boolean containsKey(SessionKey key)
-
remove
public SessionInfo remove(SessionKey key)
-
getSessionKeysOnDb
public Set<SessionKey> getSessionKeysOnDb(String db)
-
getSessionKeysOnCollection
public Set<SessionKey> getSessionKeysOnCollection(String db, String coll)
-
getSessionKeysOnOperation
public Set<SessionKey> getSessionKeysOnOperation(SessionInfo db, String coll, String operation)
-
-