Class TxnClientSessionFactory
java.lang.Object
org.restheart.mongodb.db.sessions.ClientSessionFactory
org.restheart.mongodb.db.sessions.TxnClientSessionFactory
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
Field Summary
Fields inherited from class org.restheart.mongodb.db.sessions.ClientSessionFactory
mClient -
Method Summary
Modifier and TypeMethodDescriptiongetClientSession(io.undertow.server.HttpServerExchange exchange) static TxnClientSessionFactorygetTxnClientSession(UUID sid, Optional<RSOps> rsOps) Warn: requires a round trip to the servergetTxnClientSession(UUID sid, Optional<RSOps> rsOps, Txn txnServerStatus) static voidinit(com.mongodb.ConnectionString uri) Methods inherited from class org.restheart.mongodb.db.sessions.ClientSessionFactory
createServerSession, getClientSession
-
Method Details
-
init
public static void init(com.mongodb.ConnectionString uri) - Parameters:
uri-pr-
-
getInstance
-
getClientSession
public ClientSessionImpl getClientSession(io.undertow.server.HttpServerExchange exchange) throws IllegalArgumentException - Overrides:
getClientSessionin classClientSessionFactory- Parameters:
exchange-- Returns:
- Throws:
IllegalArgumentException
-
getTxnClientSession
Warn: requires a round trip to the server- Parameters:
sid-- Returns:
-
getTxnClientSession
public TxnClientSessionImpl getTxnClientSession(UUID sid, Optional<RSOps> rsOps, Txn txnServerStatus) - Parameters:
sid-txnServerStatus-- Returns:
-