Class TxnsUtils
- java.lang.Object
-
- org.restheart.mongodb.db.sessions.TxnsUtils
-
public class TxnsUtils extends Object
- Author:
- Andrea Di Cesare
-
-
Constructor Summary
Constructors Constructor Description TxnsUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TxngetTxnServerStatus(UUID sid)Warn: requires two round trips to serverstatic voidpropagateSession(ClientSessionImpl cs)Warn: requires a round trip to the server
-
-
-
Method Detail
-
getTxnServerStatus
public static Txn getTxnServerStatus(UUID sid)
Warn: requires two round trips to server- Parameters:
sid-- Returns:
- the txn status from server
-
propagateSession
public static void propagateSession(ClientSessionImpl cs) throws com.mongodb.MongoQueryException
Warn: requires a round trip to the server- Parameters:
cs-- Throws:
com.mongodb.MongoQueryException
-
-