public class CacheTransaction extends Object implements StoreTransaction, LoggableTransaction
| Constructor and Description |
|---|
CacheTransaction(StoreTransaction tx,
KeyColumnValueStoreManager manager,
int persistChunkSize,
java.time.Duration maxWriteTime,
boolean batchLoading) |
CacheTransaction(StoreTransaction tx,
KeyColumnValueStoreManager manager,
int persistChunkSize,
java.time.Duration maxWriteTime,
boolean batchLoading,
int expectedNumStores) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Commits the transaction and persists all modifications to the backend.
|
BaseTransactionConfig |
getConfiguration()
Get the configuration for this transaction
|
StoreTransaction |
getWrappedTransaction() |
void |
logMutations(DataOutput out) |
void |
rollback()
Aborts (or rolls back) the transaction.
|
public CacheTransaction(StoreTransaction tx, KeyColumnValueStoreManager manager, int persistChunkSize, java.time.Duration maxWriteTime, boolean batchLoading)
public CacheTransaction(StoreTransaction tx, KeyColumnValueStoreManager manager, int persistChunkSize, java.time.Duration maxWriteTime, boolean batchLoading, int expectedNumStores)
public StoreTransaction getWrappedTransaction()
public void logMutations(DataOutput out)
logMutations in interface LoggableTransactionpublic void commit()
throws BackendException
BaseTransactionBaseTransaction.rollback() at most once per instance.commit in interface BaseTransactionBackendExceptionpublic void rollback()
throws BackendException
BaseTransactionBaseTransaction.commit() at most once per instance.rollback in interface BaseTransactionBackendExceptionpublic BaseTransactionConfig getConfiguration()
BaseTransactionConfigurablegetConfiguration in interface BaseTransactionConfigurableCopyright © 2012–2015. All rights reserved.