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 TypeMethodDescriptionvoid
addNotificationListener
(NotificationListener listener) Interface method to add NotificationListenervoid
notifyListeners
(NotificationEvent event) Interface method to notify Listenervoid
Interface 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
-