8.3. The Notification API

As we've already seen, several classes and interfaces play key roles in space-based distributed events, and we are going to examine the details of each in this section. Here is a brief overview:

  • JavaSpace. Objects can register to be notified of new entries appearing in a space by calling the JavaSpace interface's notify method and supplying a template. The space will generate an event whenever an entry is written that matches the template.

  • EventRegistration. When an object calls the JavaSpace interface's notify method, an EventRegistration object is returned. This object contains information about the registration, such as its lease time and a starting sequence number for events.

  • RemoteEventListener. Any object that ...

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.