1.4. JavaSpaces Technology Overview
Now we are going to dive into our first example by building the obligatory “Hello World” application. Our aim here is to introduce you to the JavaSpaces programming interface, but we will save the nitty-gritty details for the next chapter. We are going to step through the construction of the application piece by piece, and then, once it is all together, make it a little more interesting.
1.4.1. Entries and Operations
A space stores entries. An entry is a collection of typed objects that implements the Entry interface. Here is an example “message” entry, which contains one field—the content of the message:
public class Message implements Entry { public String content; public Message() { } }
We can instantiate ...
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.