Package org.apache.commons.transaction.memory

Transactional Maps Working on maps as if they were databases.

See:
          Description

Interface Summary
TxMap<K,V> Interface for a map that features transactional support.
 

Class Summary
BasicTxMap<K,V> Map featuring transactional control.
BasicTxMap.HashEntry  
OptimisticTxMap<K,V> Map featuring transactional control.
PessimisticTxMap<K,V> Map featuring transactional control.
 

Package org.apache.commons.transaction.memory Description

Transactional Maps

Working on maps as if they were databases.

The implementation of this package add transactional control to the java.util.Map interface. Transactional control refers to the procedure that you start a transaction do a number of statements and finally decide to either commit the changes, i.e. make them permanent, or rather roll back the transaction by discarding all your changes.

You are free to have any number of transactions running on such a map at the same time. In this case these transactions are said to be running concurrently. Problems that might occur with concurrent transaction are diverse and implementations differ in how much spurious phenomena can be observed. Finally, there is a great more general article about different isolations.



Copyright © 2004-2007 The Apache Software Foundation. All Rights Reserved.