Separate out {Identity,Equality}QueuedNotificationManager
[yangtools.git] / common / util / src / main / java / org / opendaylight / yangtools / util / concurrent / NotificationManager.java
index 41cc7dcc0edccbad853d8b66a8595de95d0e8b69..3c21d65a6c80ccbe6c72ff819e4da5bbc33c1015 100644 (file)
@@ -22,26 +22,23 @@ public interface NotificationManager<L, N> {
 
     /**
      * Submits a notification to be queued and dispatched to the given listener.
-     * <p>
-     * <b>Note:</b> This method may block if the listener queue is currently full.
+     *
+     * <p><b>Note:</b> This method may block if the listener queue is currently full.
      *
      * @param listener the listener to notify
      * @param notification the notification to dispatch
      * @throws RejectedExecutionException if the notification can't be queued for dispatching
      */
-    void submitNotification( L listener, N notification )
-            throws RejectedExecutionException;
+    void submitNotification(L listener, N notification);
 
     /**
      * Submits notifications to be queued and dispatched to the given listener.
-     * <p>
-     * <b>Note:</b> This method may block if the listener queue is currently full.
+     *
+     * <p><b>Note:</b> This method may block if the listener queue is currently full.
      *
      * @param listener the listener to notify
      * @param notifications the notifications to dispatch
      * @throws RejectedExecutionException if a notification can't be queued for dispatching
      */
-    void submitNotifications( L listener, Iterable<N> notifications )
-            throws RejectedExecutionException;
-
-}
\ No newline at end of file
+    void submitNotifications(L listener, Iterable<N> notifications);
+}