Uses of Class
com.kingsrook.qqq.backend.core.model.actions.consistentread.ConsistentReadInput
Packages that use ConsistentReadInput
Package
Description
PostgreSQL-specific RDBMS action strategies.
-
Uses of ConsistentReadInput in com.kingsrook.qqq.backend.core.actions
Methods in com.kingsrook.qqq.backend.core.actions with parameters of type ConsistentReadInputModifier and TypeMethodDescriptionstatic QBackendTransactionQBackendTransaction.openConsistentReadFor(ConsistentReadInput input) Open a consistent-read transaction (see QBackendModuleInterface .openConsistentReadTransaction) on the named backend. -
Uses of ConsistentReadInput in com.kingsrook.qqq.backend.core.model.actions.consistentread
Methods in com.kingsrook.qqq.backend.core.model.actions.consistentread that return ConsistentReadInputModifier and TypeMethodDescriptionConsistentReadInput.withBackendName(String backendName) Fluent setter for backendNameConsistentReadInput.withImportSnapshotId(String importSnapshotId) Fluent setter for importSnapshotIdConsistentReadInput.withReadOnly(boolean readOnly) Fluent setter for readOnlyConsistentReadInput.withScope(ConsistencyScope scope) Fluent setter for scopeConsistentReadInput.withUseReadReplica(boolean useReadReplica) Fluent setter for useReadReplica -
Uses of ConsistentReadInput in com.kingsrook.qqq.backend.core.modules.backend
Methods in com.kingsrook.qqq.backend.core.modules.backend with parameters of type ConsistentReadInputModifier and TypeMethodDescriptiondefault Optional<QBackendTransaction> QBackendModuleInterface.openConsistentReadTransaction(ConsistentReadInput input) Open a read-only transaction through which every table read (passed as the transaction on the read's input) reflects one instant - see ConsistencyScope and ConsistencyGuarantee (QBackendTransaction.getConsistencyGuarantee). -
Uses of ConsistentReadInput in com.kingsrook.qqq.backend.core.modules.backend.implementations.memory
Methods in com.kingsrook.qqq.backend.core.modules.backend.implementations.memory with parameters of type ConsistentReadInputModifier and TypeMethodDescriptionMemoryBackendModule.openConsistentReadTransaction(ConsistentReadInput input) Copy-on-read: snapshot all the data in the (process-wide) memory store, at one instant, for the transaction's reads to come from. -
Uses of ConsistentReadInput in com.kingsrook.qqq.backend.module.mongodb
Methods in com.kingsrook.qqq.backend.module.mongodb with parameters of type ConsistentReadInputModifier and TypeMethodDescriptionMongoDBBackendModule.openConsistentReadTransaction(ConsistentReadInput input) Open a session with snapshot read concern, so all reads through it see one point in time - best effort, as: - snapshot reads need a replica set (or sharded cluster). -
Uses of ConsistentReadInput in com.kingsrook.qqq.backend.module.postgres.strategy
Methods in com.kingsrook.qqq.backend.module.postgres.strategy with parameters of type ConsistentReadInputModifier and TypeMethodDescriptionPostgreSQLRDBMSActionStrategy.beginConsistentRead(Connection connection, ConsistentReadInput input) PostgreSQL: REPEATABLE READ (READ ONLY, if so requested) - so every table reflects the one snapshot the transaction takes at its first statement. -
Uses of ConsistentReadInput in com.kingsrook.qqq.backend.module.rdbms
Methods in com.kingsrook.qqq.backend.module.rdbms with parameters of type ConsistentReadInputModifier and TypeMethodDescriptionRDBMSBackendModule.openConsistentReadTransaction(ConsistentReadInput input) Open a transaction whose reads all see one snapshot of the database - in the vendor's way (see RDBMSActionStrategyInterface.beginConsistentRead). -
Uses of ConsistentReadInput in com.kingsrook.qqq.backend.module.rdbms.actions
Constructors in com.kingsrook.qqq.backend.module.rdbms.actions with parameters of type ConsistentReadInputModifierConstructorDescriptionRDBMSConsistentReadTransaction(Connection connection, RDBMSActionStrategyInterface strategy, ConsistentReadInput input) Constructor - takes the snapshot (using the strategy for the database vendor), or closes the connection and throws if that fails. -
Uses of ConsistentReadInput in com.kingsrook.qqq.backend.module.rdbms.strategy
Methods in com.kingsrook.qqq.backend.module.rdbms.strategy with parameters of type ConsistentReadInputModifier and TypeMethodDescriptionBaseRDBMSActionStrategy.beginConsistentRead(Connection connection, ConsistentReadInput input) MySQL/MariaDB (InnoDB): START TRANSACTION WITH CONSISTENT SNAPSHOT (READ ONLY).default ConsistentReadStartRDBMSActionStrategyInterface.beginConsistentRead(Connection connection, ConsistentReadInput input) Start a transaction on the (autocommit-off) connection, such that every read through it sees one snapshot - or, for a database with no better way, at least asks for REPEATABLE READ isolation, and reports BEST_EFFORT. -
Uses of ConsistentReadInput in com.kingsrook.qqq.backend.module.sqlite.strategy
Methods in com.kingsrook.qqq.backend.module.sqlite.strategy with parameters of type ConsistentReadInputModifier and TypeMethodDescriptionSQLiteRDBMSActionStrategy.beginConsistentRead(Connection connection, ConsistentReadInput input) SQLite: with autocommit off, the driver issues BEGIN (deferred), and the first read - which we do here, so the snapshot is taken now rather than at the caller's first query - takes the read lock/snapshot.