The Read and Write in a Space
The Get and Take operations are used to read from a space. The Put operations is used to write to a space.
- Getting or Taking a Single Tuple from the Space
Retrieving or taking a single tuple from a space is done using the space’s get or take methods. - Put Operation for Storing a Tuple in a Space
To store a tuple in a space, call the space’s put method, which takes the tuple to put as an argument and returns what ever was overwritten in the space (if anything was) by the put. - Operations on a Tuple in a Space
Put operations always overwrite (and return) whatever was stored before them in the space. But when more than one application updates the same data concurrently, it can be necessary to use “compare and set” type operations.
Related concepts
Related reference
Copyright © Cloud Software Group, Inc. All rights reserved.