| Package | Description |
|---|---|
| org.rocksdb |
| Modifier and Type | Method and Description |
|---|---|
TransactionOptions |
TransactionOptions.setDeadlockDetect(boolean deadlockDetect)
Setting to true means that before acquiring locks, this transaction will
check if doing so will cause a deadlock.
|
TransactionOptions |
TransactionOptions.setDeadlockDetectDepth(long deadlockDetectDepth)
Sets the number of traversals to make during deadlock detection.
|
TransactionOptions |
TransactionOptions.setExpiration(long expiration)
Expiration duration in milliseconds.
|
TransactionOptions |
TransactionOptions.setLockTimeout(long lockTimeout)
If positive, specifies the wait timeout in milliseconds when
a transaction attempts to lock a key.
|
TransactionOptions |
TransactionOptions.setMaxWriteBatchSize(long maxWriteBatchSize)
Set the maximum number of bytes that may be used for the write batch.
|
TransactionOptions |
TransactionOptions.setSetSnapshot(boolean setSnapshot) |
| Modifier and Type | Method and Description |
|---|---|
Transaction |
TransactionDB.beginTransaction(WriteOptions writeOptions,
TransactionOptions transactionOptions) |
Transaction |
TransactionDB.beginTransaction(WriteOptions writeOptions,
TransactionOptions transactionOptions,
Transaction oldTransaction) |
Copyright © 2021. All rights reserved.