public class TransactionStore extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
TransactionStore.ArrayType
A data type that contains an array of objects with the specified data
types.
|
static class |
TransactionStore.Change
A change in a map.
|
static class |
TransactionStore.Transaction
A transaction.
|
static class |
TransactionStore.TransactionMap<K,V>
A map that supports transactions.
|
static class |
TransactionStore.VersionedValueType
The value type for a versioned value.
|
| 构造器和说明 |
|---|
TransactionStore(MVStore store)
Create a new transaction store.
|
TransactionStore(MVStore store,
DataType dataType)
Create a new transaction store.
|
| 限定符和类型 | 方法和说明 |
|---|---|
TransactionStore.Transaction |
begin()
Begin a new transaction.
|
void |
close()
Close the transaction store.
|
List<TransactionStore.Transaction> |
getOpenTransactions()
Get the list of unclosed transactions that have pending writes.
|
void |
init()
Initialize the store.
|
void |
logUndo(TransactionStore.Transaction t,
long logId)
Remove a log entry.
|
void |
setMaxTransactionId(int max)
Set the maximum transaction id, after which ids are re-used.
|
public TransactionStore(MVStore store)
store - the storepublic void init()
public void setMaxTransactionId(int max)
max - the maximum idpublic List<TransactionStore.Transaction> getOpenTransactions()
public void close()
public TransactionStore.Transaction begin()
public void logUndo(TransactionStore.Transaction t, long logId)
t - the transactionlogId - the log idCopyright © 2017. All rights reserved.