public static final class MySqlTransactionDefinition.Builder extends Object
TransactionDefinition.public MySqlTransactionDefinition build()
public MySqlTransactionDefinition.Builder isolationLevel(@Nullable IsolationLevel isolationLevel)
TransactionDefinition.ISOLATION_LEVEL option.isolationLevel - the level which change to, or null to remove old value.public MySqlTransactionDefinition.Builder lockWaitTimeout(@Nullable Duration lockWaitTimeout)
TransactionDefinition.LOCK_WAIT_TIMEOUT option.lockWaitTimeout - the timeout which change to, or null to remove old value.public MySqlTransactionDefinition.Builder readOnly(@Nullable Boolean readOnly)
TransactionDefinition.READ_ONLY option.readOnly - if enable read only, or null to remove old value.public MySqlTransactionDefinition.Builder withConsistentSnapshot(@Nullable Boolean withConsistentSnapshot)
MySqlTransactionDefinition.WITH_CONSISTENT_SNAPSHOT option. Notice that this phrase can only be used
with the REPEATABLE READ isolation level.withConsistentSnapshot - if enable consistent snapshot, or null to remove old value.public MySqlTransactionDefinition.Builder consistentSnapshotEngine(@Nullable ConsistentSnapshotEngine snapshotEngine)
MySqlTransactionDefinition.CONSISTENT_SNAPSHOT_ENGINE option.snapshotEngine - the engine which change to, or null to remove old value.public MySqlTransactionDefinition.Builder consistentSnapshotFromSession(@Nullable Long sessionId)
MySqlTransactionDefinition.CONSISTENT_SNAPSHOT_FROM_SESSION option.sessionId - the session id which change to, or null to remove old value.Copyright © 2018–2023 asyncer.io. All rights reserved.