|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.mvstore.db.TransactionStore
public class TransactionStore
A store that supports concurrent transactions.
| Nested Class Summary | |
|---|---|
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 Summary | |
|---|---|
TransactionStore(MVStore store)
Create a new transaction store. |
|
TransactionStore(MVStore store,
DataType dataType)
Create a new transaction store. |
|
| Method Summary | |
|---|---|
TransactionStore.Transaction |
begin()
Begin a new transaction. |
void |
close()
Close the transaction store. |
java.util.List<TransactionStore.Transaction> |
getOpenTransactions()
Get the list of unclosed transactions that have pending writes. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransactionStore(MVStore store)
store - the store
public TransactionStore(MVStore store,
DataType dataType)
store - the storedataType - the data type for map keys and values| Method Detail |
|---|
public void setMaxTransactionId(int max)
max - the maximum idpublic java.util.List<TransactionStore.Transaction> getOpenTransactions()
public void close()
public TransactionStore.Transaction begin()
public void logUndo(TransactionStore.Transaction t,
long logId)
t - the transactionlogId - the log id
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||