9.5. Operational Semantics Under Transactions

In Chapter 2, we covered the operational semantics of each space operation (with the exception of notify, which we covered in Chapter 8). Taking another look at the basic space operations is appropriate at this point, because transactions introduce subtle changes to their operational semantics. If you plan to make use of transactions in order to build robust distributed programs, then it's important to understand the details of this section.

9.5.1. Writing Entries Under a Transaction

When you write an entry into a space under a transaction, the entry is only seen within the transaction until it commits. This means that the entry is invisible to any attempts to read, take or be notified of the entry ...

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.