org.apache.directory.mavibot.btree

## Interface TransactionManager<K,V>

- All Known Implementing Classes:
    AbstractTransactionManager, InMemoryTransactionManager, RecordManager

      public interface TransactionManager<K,V>

  An interface used to manage the transactions mechanism in B-trees. Transactions are cross B-trees.
  Author:
    Apache Directory Project

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `beginTransaction()` Starts a transaction
    `void` | `commit()` Commits a transaction
    `org.apache.directory.mavibot.btree.BTreeHeader<K,V>` | `getBTreeHeader(String btreeName)` Gets the current BtreeHeader for a given BTree.
    `void` | `rollback()` Rollback a transaction
    `void` | `updateNewBTreeHeaders(org.apache.directory.mavibot.btree.BTreeHeader<K,V> btreeHeader)` Updates the map of new BTreeHeaders

- - ### Method Detail

    - #### beginTransaction

          void beginTransaction()

      Starts a transaction

    - #### commit

          void commit()

      Commits a transaction

    - #### rollback

          void rollback()

      Rollback a transaction

    - #### getBTreeHeader

          org.apache.directory.mavibot.btree.BTreeHeader<K,V> getBTreeHeader(String btreeName)

      Gets the current BtreeHeader for a given BTree.
      Parameters:
        `btreeName` - The Btree name we are looking the BtreeHeader for
      Returns:
        the current BTreeHeader

    - #### updateNewBTreeHeaders

          void updateNewBTreeHeaders(org.apache.directory.mavibot.btree.BTreeHeader<K,V> btreeHeader)

      Updates the map of new BTreeHeaders
      Parameters:
        `btreeHeader` - The new BtreeHeader

Copyright © 2012–2015 Apache Mavibot Project Parent. All rights reserved.