Wrapper that adds transactional control to all kinds of maps that implement the {@link Map} interface.This wrapper has rather weak isolation, but is simply, neven blocks and commits will never fail for logical reasons. Start a transaction by calling {@link #startTransaction()}. Then perform the normal actions on the map and finally either call {@link #commitTransaction()} to make your changes permanent or {@link #rollbackTransaction()} toundo them. Caution: Do not modify values retrieved by {@link #get(Object)} as this will circumvent the transactional mechanism.Rather clone the value or copy it in a way you see fit and store it back using {@link #put(Object,Object)}. Note: This wrapper guarantees isolation level READ COMMITTED only. I.e. as soon a value is committed in one transaction it will be immediately visible in all other concurrent transactions.
@version $Revision: 1.1 $
@see OptimisticMapWrapper
@see PessimisticMapWrapper
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.