Class DistributedQueueDemo

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

public class DistributedQueueDemo extends Frame implements WindowListener, ActionListener, DistributedQueue.Notification
Uses the DistributedQueue building block. The latter subclasses org.jgroups.util.Queue and overrides the methods that modify the queue (e.g. add()). Those methods are multicast to the group, whereas read-only methods such as peek() use the local copy. A DistributedQueue is created given the name of a group; all queues with the same name find each other and form a group.
Author:
Romuald du Song
See Also: