K
- The type for the KeyV
- The type for the stored valuepublic class ReadTransaction<K,V> extends Object
Constructor and Description |
---|
ReadTransaction(org.apache.directory.mavibot.btree.BTreeHeader<K,V> btreeHeader,
ConcurrentLinkedQueue<ReadTransaction<K,V>> readTransactions)
Creates a new transaction instance
|
ReadTransaction(RecordManager recordManager,
org.apache.directory.mavibot.btree.BTreeHeader<K,V> btreeHeader,
ConcurrentLinkedQueue<ReadTransaction<K,V>> readTransactions)
Creates a new transaction instance
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the transaction, releasing the revision it was using.
|
org.apache.directory.mavibot.btree.BTreeHeader<K,V> |
getBtreeHeader() |
long |
getCreationDate() |
long |
getRevision() |
boolean |
isClosed() |
String |
toString() |
public ReadTransaction(RecordManager recordManager, org.apache.directory.mavibot.btree.BTreeHeader<K,V> btreeHeader, ConcurrentLinkedQueue<ReadTransaction<K,V>> readTransactions)
btreeHeader
- The BtreeHeader we will use for this read transactionpublic ReadTransaction(org.apache.directory.mavibot.btree.BTreeHeader<K,V> btreeHeader, ConcurrentLinkedQueue<ReadTransaction<K,V>> readTransactions)
btreeHeader
- The BtreeHeader we will use for this read transactionpublic long getRevision()
public long getCreationDate()
public org.apache.directory.mavibot.btree.BTreeHeader<K,V> getBtreeHeader()
public void close()
public boolean isClosed()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2012–2015 Apache Mavibot Project Parent. All rights reserved.