Merge "Initial implementation of the ClusteredDataStore"
[controller.git] / opendaylight / md-sal / sal-dom-broker / src / main / java / org / opendaylight / controller / sal / dom / broker / spi / NotificationRouter.java
1 package org.opendaylight.controller.sal.dom.broker.spi;
2
3 import org.opendaylight.controller.sal.core.api.notify.NotificationListener;
4 import org.opendaylight.yangtools.concepts.Registration;
5 import org.opendaylight.yangtools.yang.common.QName;
6 import org.opendaylight.yangtools.yang.data.api.CompositeNode;
7
8 public interface NotificationRouter {
9
10     void publish(CompositeNode notification);
11
12     /**
13      * Registers a notification listener for supplied notification type.
14      * 
15      * @param notification
16      * @param listener
17      */
18     Registration<NotificationListener> addNotificationListener(QName notification,
19             NotificationListener listener);
20
21 }