8.5. Summary
In this chapter, we've introduced the JavaSpace interface's notify method as a way to write space-based programs that have a more reactive style. We've also taken a close look at the classes and interfaces of the Jini Distributed Event model upon which the notify method is built.
In building our channel relay application, we were able to put these various classes and interfaces to use and gain experience writing an event-driven program. Every space-based application you might want to build using notify can certainly be rearchitected to use read and take, but as we saw in the channel relay example, there are definite cases where applications are cleaner to build in a reactive style.
There are a couple of advanced topics that are beyond ...
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