| Package | Description |
|---|---|
| org.rocksdb |
| Modifier and Type | Method and Description |
|---|---|
TransactionDBOptions |
TransactionDBOptions.setDefaultLockTimeout(long defaultLockTimeout)
If positive, specifies the wait timeout in milliseconds when writing a key
OUTSIDE of a transaction (ie by calling
RocksDB.put(byte[], byte[]),
RocksDB.merge(byte[], byte[]), RocksDB.delete(byte[]) or RocksDB.write(org.rocksdb.WriteOptions, org.rocksdb.WriteBatch)
directly). |
TransactionDBOptions |
TransactionDBOptions.setMaxNumLocks(long maxNumLocks)
Specifies the maximum number of keys that can be locked at the same time
per column family.
|
TransactionDBOptions |
TransactionDBOptions.setNumStripes(long numStripes)
Increasing this value will increase the concurrency by dividing the lock
table (per column family) into more sub-tables, each with their own
separate mutex.
|
TransactionDBOptions |
TransactionDBOptions.setTransactionLockTimeout(long transactionLockTimeout)
If positive, specifies the default wait timeout in milliseconds when
a transaction attempts to lock a key if not specified by
TransactionOptions.setLockTimeout(long)
If 0, no waiting is done if a lock cannot instantly be acquired. |
TransactionDBOptions |
TransactionDBOptions.setWritePolicy(TxnDBWritePolicy writePolicy)
The policy for when to write the data into the DB.
|
| Modifier and Type | Method and Description |
|---|---|
static TransactionDB |
TransactionDB.open(DBOptions dbOptions,
TransactionDBOptions transactionDbOptions,
String path,
List<ColumnFamilyDescriptor> columnFamilyDescriptors,
List<ColumnFamilyHandle> columnFamilyHandles)
Open a TransactionDB, similar to
RocksDB.open(DBOptions, String, List, List). |
static TransactionDB |
TransactionDB.open(Options options,
TransactionDBOptions transactionDbOptions,
String path)
Open a TransactionDB, similar to
RocksDB.open(Options, String). |
Copyright © 2021. All rights reserved.