2.7. Summary
We have covered a lot of ground in this chapter, taking a close look at the two primary objects used in space-based programming: the space and the entry. We covered the basic operations in tutorial style, giving some simple examples along with explanations of how to use the JavaSpace interface.
We've also spent a fair amount of time in this chapter discussing the various requirements and conventions you need to follow when creating entries. Implementing the Entry interface is a requirement, and so is supplying a no-arg constructor in your entries. If you don't follow these requirements, you'll encounter compile-time and run-time errors. If you don't follow other conventions—namely, making sure the fields of your entries are public ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access