Class ConsistentReadInput

java.lang.Object
com.kingsrook.qqq.backend.core.model.actions.AbstractActionInput
com.kingsrook.qqq.backend.core.model.actions.consistentread.ConsistentReadInput

public class ConsistentReadInput extends AbstractActionInput
Input for QBackendModuleInterface.openConsistentReadTransaction - asks a backend for a read-only transaction through which every table read reflects one instant (see ConsistencyScope).
  • Constructor Details

    • ConsistentReadInput

      public ConsistentReadInput()
      Constructor
    • ConsistentReadInput

      public ConsistentReadInput(String backendName)
      Constructor
  • Method Details

    • getBackendName

      public String getBackendName()
      Getter for backendName
    • setBackendName

      public void setBackendName(String backendName)
      Setter for backendName
    • withBackendName

      public ConsistentReadInput withBackendName(String backendName)
      Fluent setter for backendName
    • getScope

      public ConsistencyScope getScope()
      Getter for scope
    • setScope

      public void setScope(ConsistencyScope scope)
      Setter for scope
    • withScope

      public ConsistentReadInput withScope(ConsistencyScope scope)
      Fluent setter for scope
    • getReadOnly

      public boolean getReadOnly()
      Getter for readOnly
    • setReadOnly

      public void setReadOnly(boolean readOnly)
      Setter for readOnly
    • withReadOnly

      public ConsistentReadInput withReadOnly(boolean readOnly)
      Fluent setter for readOnly
    • getUseReadReplica

      public boolean getUseReadReplica()
      Getter for useReadReplica
    • setUseReadReplica

      public void setUseReadReplica(boolean useReadReplica)
      Setter for useReadReplica
    • withUseReadReplica

      public ConsistentReadInput withUseReadReplica(boolean useReadReplica)
      Fluent setter for useReadReplica
    • getImportSnapshotId

      public Optional<String> getImportSnapshotId()
      Getter for importSnapshotId - if present, attach to the snapshot exported by another consistent-read transaction (getExportedSnapshotId) instead of taking a new one.
    • setImportSnapshotId

      public void setImportSnapshotId(String importSnapshotId)
      Setter for importSnapshotId
    • withImportSnapshotId

      public ConsistentReadInput withImportSnapshotId(String importSnapshotId)
      Fluent setter for importSnapshotId