Class ClientSessionFactory
- java.lang.Object
-
- org.restheart.mongodb.db.sessions.ClientSessionFactory
-
- Direct Known Subclasses:
TxnClientSessionFactory
public class ClientSessionFactory extends Object
- Author:
- Andrea Di Cesare
-
-
Field Summary
Fields Modifier and Type Field Description protected com.mongodb.MongoClientmClient
-
Constructor Summary
Constructors Modifier Constructor Description protectedClientSessionFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.mongodb.session.ServerSessioncreateServerSession(UUID sid)ClientSessionImplgetClientSession(io.undertow.server.HttpServerExchange exchange)ClientSessionImplgetClientSession(UUID sid)static ClientSessionFactorygetInstance()
-
-
-
Method Detail
-
getInstance
public static ClientSessionFactory getInstance()
- Returns:
-
createServerSession
public com.mongodb.session.ServerSession createServerSession(UUID sid)
- Parameters:
sid-- Returns:
-
getClientSession
public ClientSessionImpl getClientSession(io.undertow.server.HttpServerExchange exchange) throws IllegalArgumentException
- Parameters:
exchange-- Returns:
- Throws:
IllegalArgumentException
-
getClientSession
public ClientSessionImpl getClientSession(UUID sid)
- Parameters:
sid-- Returns:
-
-