Package org.jgroups.demos
Class NotificationBusDemo
java.lang.Object
org.jgroups.demos.NotificationBusDemo
- All Implemented Interfaces:
NotificationBus.Consumer
Demoes the NotificationBus (without caching). Start a number of members and type in messages. All members will
receive the messages. View changes will also be displayed (e.g. member joined, left).
- Author:
- Bela Ban
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCache()
Called on the coordinator to obtains its cachevoid
static void
void
memberJoined
(Address mbr) void
memberLeft
(Address mbr) void
-
Constructor Details
-
NotificationBusDemo
public NotificationBusDemo()
-
-
Method Details
-
start
-
handleNotification
- Specified by:
handleNotification
in interfaceNotificationBus.Consumer
-
getCache
Description copied from interface:NotificationBus.Consumer
Called on the coordinator to obtains its cache- Specified by:
getCache
in interfaceNotificationBus.Consumer
-
memberJoined
- Specified by:
memberJoined
in interfaceNotificationBus.Consumer
-
memberLeft
- Specified by:
memberLeft
in interfaceNotificationBus.Consumer
-
main
-