The
RecoverableTransactonMap
class represents a mapping of key-value pair Objects. It wraps a java.util.HashMap and delegates the usual put, get, and remove methods. This Map implements the {@link RecoverableTransaction} interface and assuch provides the means to:
- Capture the Map state at a specified instant.
- Restore the captured state under error conditions.
Clients of RecoverableTransactionMap may define the start of a transaction by calling the {@link #startTransaction()} method. The transaction may becompleted successfully by a call to the {@link #commitTransaction()} method.The transaction may be reverted under error conditions by a call to the {@link #rollbackTransaction()} method.