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 cachevoidstatic voidvoidmemberJoined(Address mbr) voidmemberLeft(Address mbr) void
-
Constructor Details
-
NotificationBusDemo
public NotificationBusDemo()
-
-
Method Details
-
start
-
handleNotification
- Specified by:
handleNotificationin interfaceNotificationBus.Consumer
-
getCache
Description copied from interface:NotificationBus.ConsumerCalled on the coordinator to obtains its cache- Specified by:
getCachein interfaceNotificationBus.Consumer
-
memberJoined
- Specified by:
memberJoinedin interfaceNotificationBus.Consumer
-
memberLeft
- Specified by:
memberLeftin interfaceNotificationBus.Consumer
-
main
-