public class TransactionStore extends Object
Modifier and Type | Class and Description |
---|---|
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.
|
Constructor and Description |
---|
TransactionStore(MVStore store)
Create a new transaction store.
|
TransactionStore(MVStore store,
DataType dataType)
Create a new transaction store.
|
Modifier and Type | Method and Description |
---|---|
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 JBoss by Red Hat. All rights reserved.