Uses of Interface
tech.ydb.yoj.repository.db.TxManager
Packages that use TxManager
-
Uses of TxManager in tech.ydb.yoj.repository.db
Classes in tech.ydb.yoj.repository.db that implement TxManagerModifier and TypeClassDescriptionclassAbstract base class for decoratingTxManagers: Enable additional tracing and logging, collect more metrics etc.:wrapTxBody()Transform transaction results and accept/reject transactions (e.g.final classStandard implementation oftransaction managerinterface, which logs transaction statements and results, and reports transaction execution metrics: rollback and commit counts; attempt duration, total duration and retry count histograms.Fields in tech.ydb.yoj.repository.db declared as TxManagerMethods in tech.ydb.yoj.repository.db that return TxManagerModifier and TypeMethodDescriptionprotected abstract TxManagerDelegatingTxManager.createTxManager(TxManager delegate) Creates an instance of this class that wraps the specifiedTxManager.DelegatingTxManager.delayedWrites()StdTxManager.delayedWrites()TxManager.delayedWrites()Enable pending write queue in transaction and execute write changes right before the transaction is committed.final TxManagerDelegatingTxManager.failOnUnknownSeparateTx()StdTxManager.failOnUnknownSeparateTx()TxManager.failOnUnknownSeparateTx()Fails if you try to create a separate transaction inside other transaction.final TxManagerDelegatingTxManager.immediateWrites()StdTxManager.immediateWrites()TxManager.immediateWrites()Disable pending write queue in transaction and execute write changes immediately.final TxManagerDelegatingTxManager.noFirstLevelCache()StdTxManager.noFirstLevelCache()TxManager.noFirstLevelCache()Turn off first level cachefinal TxManagerDelegatingTxManager.noLogging()default TxManagerTxManager.noLogging()Disables logging of this transaction's execution.final TxManagerDelegatingTxManager.separate()StdTxManager.separate()TxManager.separate()Mark transaction as explicitly separate from current transaction.final TxManagerDelegatingTxManager.withBriefLogging()default TxManagerTxManager.withBriefLogging()Configures brief logging for this transactions's execution.final TxManagerDelegatingTxManager.withDryRun(boolean dryRun) StdTxManager.withDryRun(boolean dryRun) TxManager.withDryRun(boolean dryRun) Marks the transaction as dry-run.final TxManagerDelegatingTxManager.withLogContext(String logContext) TxManager.withLogContext(String logContext) final TxManagerDelegatingTxManager.withLogLevel(TransactionLog.Level level) StdTxManager.withLogLevel(TransactionLog.Level level) TxManager.withLogLevel(TransactionLog.Level level) Changes logging verbosity.DelegatingTxManager.withLogStatementOnSuccess(boolean logStatementOnSuccess) StdTxManager.withLogStatementOnSuccess(boolean logStatementOnSuccess) TxManager.withLogStatementOnSuccess(boolean logStatementOnSuccess) Flag for managing logging transaction statement on success.final TxManagerDelegatingTxManager.withMaxRetries(int maxRetries) StdTxManager.withMaxRetries(int maxRetries) TxManager.withMaxRetries(int maxRetries) Sets maximum number of retries for eachtx() call:RetryableExceptions will cause the call to be retried at most(1 + maxRetries)times.final TxManagerfinal TxManagerSet transaction name used for logging and metrics.default TxManagerShort cut for:final TxManagerDelegatingTxManager.withTimeout(Duration timeout) StdTxManager.withTimeout(Duration timeout) TxManager.withTimeout(Duration timeout) Changes transaction timeout.final TxManagerDelegatingTxManager.withVerboseLogging()default TxManagerTxManager.withVerboseLogging()Configures verbose logging for this transactions's execution.Methods in tech.ydb.yoj.repository.db with parameters of type TxManagerModifier and TypeMethodDescriptionprotected abstract TxManagerDelegatingTxManager.createTxManager(TxManager delegate) Creates an instance of this class that wraps the specifiedTxManager.Constructors in tech.ydb.yoj.repository.db with parameters of type TxManager