Class ClientSessionFactory
java.lang.Object
org.restheart.mongodb.db.sessions.ClientSessionFactory
- Direct Known Subclasses:
TxnClientSessionFactory
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.mongodb.session.ServerSessioncreateServerSession(UUID sid)getClientSession(io.undertow.server.HttpServerExchange exchange)getClientSession(UUID sid)static ClientSessionFactory
-
Field Details
-
mClient
protected com.mongodb.MongoClient mClient
-
-
Constructor Details
-
ClientSessionFactory
protected ClientSessionFactory()
-
-
Method Details
-
getInstance
- Returns:
-
createServerSession
- Parameters:
sid-- Returns:
-
getClientSession
public ClientSessionImpl getClientSession(io.undertow.server.HttpServerExchange exchange) throws IllegalArgumentException- Parameters:
exchange-- Returns:
- Throws:
IllegalArgumentException
-
getClientSession
- Parameters:
sid-- Returns:
-