Class ReplicatedHashMapDemo

All Implemented Interfaces:
ActionListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ReplicatedHashMap.Notification

public class ReplicatedHashMapDemo extends Frame implements WindowListener, ActionListener, ReplicatedHashMap.Notification
Uses the ReplicatedHashMap building block, which subclasses java.util.HashMap and overrides the methods that modify the hashmap (e.g. put()). Those methods are multicast to the group, whereas read-only methods such as get() use the local copy. A ReplicatedtHashMap is created given the name of a group; all hashmaps with the same name find each other and form a group.
Version:
$Id: ReplicatedHashMapDemo.java,v 1.1 2007/07/23 09:27:51 belaban Exp $
Author:
Bela Ban
See Also: