Class TxnsUtils

java.lang.Object
org.restheart.mongodb.db.sessions.TxnsUtils

public class TxnsUtils extends Object
Author:
Andrea Di Cesare <andrea@softinstigate.com>
  • Constructor Details

    • TxnsUtils

      public TxnsUtils()
  • Method Details

    • getTxnServerStatus

      public static Txn getTxnServerStatus(UUID sid, Optional<RSOps> rsOps)
      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