public class LevelDBKVDatabase extends SnapshotKVDatabase
KVDatabase implementation based on a LevelDBAtomicKVStore, providing concurrent transactions
and linearizable ACID semantics.
Key watches are supported.
log| Constructor and Description |
|---|
LevelDBKVDatabase() |
| Modifier and Type | Method and Description |
|---|---|
protected LevelDBKVTransaction |
createSnapshotKVTransaction(SnapshotVersion versionInfo) |
LevelDBKVTransaction |
createTransaction() |
void |
setKVStore(LevelDBAtomicKVStore kvstore)
Configure the underlying
LevelDBAtomicKVStore used by this instance. |
protected RuntimeException |
wrapException(SnapshotKVTransaction tx,
RuntimeException e) |
closeTransactions, createTransaction, getKVStore, logException, setKVStore, start, stop, toStringpublic void setKVStore(LevelDBAtomicKVStore kvstore)
LevelDBAtomicKVStore used by this instance. Required property.kvstore - underlying key/value storeIllegalStateException - if this instance is already SnapshotKVDatabase.start()edpublic LevelDBKVTransaction createTransaction()
createTransaction in interface KVDatabasecreateTransaction in class SnapshotKVDatabaseprotected LevelDBKVTransaction createSnapshotKVTransaction(SnapshotVersion versionInfo)
createSnapshotKVTransaction in class SnapshotKVDatabaseprotected RuntimeException wrapException(SnapshotKVTransaction tx, RuntimeException e)
wrapException in class SnapshotKVDatabaseCopyright © 2016. All rights reserved.