|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ToolkitNotifier<T>
A notifier that can be used to send notifications across the cluster.
Consult the Toolkit class level docs for more info on behavior regarding destroy.
Method Summary | |
---|---|
void |
addNotificationListener(ToolkitNotificationListener<T> listener)
Add a local notification listener. |
List<ToolkitNotificationListener<T>> |
getNotificationListeners()
Returns the List of the local NotificationListeners. |
void |
notifyListeners(T msg)
Send the msg to all the listeners in the cluster The local listeners wont be notified |
void |
removeNotificationListener(ToolkitNotificationListener<T> listener)
Remove the notification listener. |
Methods inherited from interface org.terracotta.toolkit.object.Destroyable |
---|
destroy, isDestroyed |
Methods inherited from interface org.terracotta.toolkit.object.ToolkitObject |
---|
getName |
Method Detail |
---|
void addNotificationListener(ToolkitNotificationListener<T> listener)
void removeNotificationListener(ToolkitNotificationListener<T> listener)
void notifyListeners(T msg)
List<ToolkitNotificationListener<T>> getNotificationListeners()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |