Package gov.usgs.earthquake.distribution
Interface ListenerNotifier
-
- All Superinterfaces:
Configurable
- All Known Implementing Classes:
ExecutorListenerNotifier
,FutureListenerNotifier
,RoundRobinListenerNotifier
public interface ListenerNotifier extends Configurable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addNotificationListener(NotificationListener listener)
Interface method to add NotificationListenervoid
notifyListeners(NotificationEvent event)
Interface method to notify Listenervoid
removeNotificationListener(NotificationListener listener)
Interface method to remove NotificationListener
-
-
-
Method Detail
-
addNotificationListener
void addNotificationListener(NotificationListener listener) throws java.lang.Exception
Interface method to add NotificationListener- Parameters:
listener
- NotificationListener- Throws:
java.lang.Exception
- if error occurs
-
removeNotificationListener
void removeNotificationListener(NotificationListener listener) throws java.lang.Exception
Interface method to remove NotificationListener- Parameters:
listener
- NotificationListener- Throws:
java.lang.Exception
- if error occurs
-
notifyListeners
void notifyListeners(NotificationEvent event) throws java.lang.Exception
Interface method to notify Listener- Parameters:
event
- NotificationEvent- Throws:
java.lang.Exception
- if error occurs
-
-