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.client.MongoClient mClient
-
-
Constructor Details
-
ClientSessionFactory
public 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:
-