9.4. The Space's Transactional Properties

Space-based transactions adhere to a set of properties known as the ACID properties. The word ACID is an acronym that stands for atomicity, consistency, isolation, and durability. Let's look at what each one means:

  • Atomicity means that a transaction's changes to a space are atomic: either all of the state changes occur or none of them do. These changes include the effects of all read, write, take, and notify operations that occur within the transaction.

  • Consistency means that a transaction's changes do not violate the correctness of the state within the space. This property requires that your program be correct. For instance, our web counter example ensures that an entry is both taken and returned; given ...

Get JavaSpaces™ Principles, Patterns, and Practice now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.