public class NotificationBusDemo extends Object implements NotificationBus.Consumer
Constructor and Description |
---|
NotificationBusDemo() |
Modifier and Type | Method and Description |
---|---|
Serializable |
getCache()
Called on the coordinator to obtains its cache
|
void |
handleNotification(Serializable n) |
static void |
main(String[] args) |
void |
memberJoined(Address mbr) |
void |
memberLeft(Address mbr) |
void |
start(String bus_name,
String props) |
public void handleNotification(Serializable n)
handleNotification
in interface NotificationBus.Consumer
public Serializable getCache()
NotificationBus.Consumer
getCache
in interface NotificationBus.Consumer
public void memberJoined(Address mbr)
memberJoined
in interface NotificationBus.Consumer
public void memberLeft(Address mbr)
memberLeft
in interface NotificationBus.Consumer
public static void main(String[] args)
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.