Class MongoDBConsistentReadTransaction

All Implemented Interfaces:
AutoCloseable

public class MongoDBConsistentReadTransaction extends MongoDBTransaction
MongoDB transaction opened by MongoDBBackendModule.openConsistentReadTransaction - wrapping a session that has snapshot read concern (if the server supports it). Never starts a mongo transaction (snapshot sessions can't have one), and so is for reads only.
  • Constructor Details

    • MongoDBConsistentReadTransaction

      public MongoDBConsistentReadTransaction(MongoDBBackendMetaData backend, com.mongodb.client.MongoClient mongoClient, com.mongodb.client.ClientSession clientSession, ConsistencyGuarantee consistencyGuarantee)
      Constructor
  • Method Details