Class TxnClientSessionFactory
- java.lang.Object
-
- org.restheart.mongodb.db.sessions.ClientSessionFactory
-
- org.restheart.mongodb.db.sessions.TxnClientSessionFactory
-
public class TxnClientSessionFactory extends ClientSessionFactory
- Author:
- Andrea Di Cesare
-
-
Field Summary
-
Fields inherited from class org.restheart.mongodb.db.sessions.ClientSessionFactory
mClient
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientSessionImplgetClientSession(io.undertow.server.HttpServerExchange exchange)static TxnClientSessionFactorygetInstance()TxnClientSessionImplgetTxnClientSession(UUID sid)Warn: requires a round trip to the serverTxnClientSessionImplgetTxnClientSession(UUID sid, Txn txnServerStatus)-
Methods inherited from class org.restheart.mongodb.db.sessions.ClientSessionFactory
createServerSession, getClientSession
-
-
-
-
Method Detail
-
getInstance
public static TxnClientSessionFactory getInstance()
-
getClientSession
public ClientSessionImpl getClientSession(io.undertow.server.HttpServerExchange exchange) throws IllegalArgumentException
- Overrides:
getClientSessionin classClientSessionFactory- Parameters:
exchange-- Returns:
- Throws:
IllegalArgumentException
-
getTxnClientSession
public TxnClientSessionImpl getTxnClientSession(UUID sid)
Warn: requires a round trip to the server- Parameters:
sid-- Returns:
-
getTxnClientSession
public TxnClientSessionImpl getTxnClientSession(UUID sid, Txn txnServerStatus)
- Parameters:
sid-txnServerStatus-- Returns:
-
-