Package gov.usgs.earthquake.distribution
Interface ListenerNotifier
- All Superinterfaces:
Configurable
- All Known Implementing Classes:
ExecutorListenerNotifier,FutureListenerNotifier,RoundRobinListenerNotifier
Interface for Notification Listener
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddNotificationListener(NotificationListener listener) Interface method to add NotificationListenervoidnotifyListeners(NotificationEvent event) Interface method to notify ListenervoidInterface method to remove NotificationListener
-
Method Details
-
addNotificationListener
Interface method to add NotificationListener- Parameters:
listener- NotificationListener- Throws:
Exception- if error occurs
-
removeNotificationListener
Interface method to remove NotificationListener- Parameters:
listener- NotificationListener- Throws:
Exception- if error occurs
-
notifyListeners
Interface method to notify Listener- Parameters:
event- NotificationEvent- Throws:
Exception- if error occurs
-