2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.sal.core.api.notify;
10 import org.opendaylight.controller.sal.core.api.Broker;
11 import org.opendaylight.controller.sal.core.api.Provider;
12 import org.opendaylight.yangtools.yang.data.api.CompositeNode;
15 * Notification Publishing Service
17 * The simplified process of the notification publishing is following:
20 * <li> {@link Provider} invokes {@link #sendNotification(CompositeNode)}
21 * <li> {@link Broker} finds {@link NotificationListener}s which subscribed for
22 * the notification type.
24 * <li>For each subscriber {@link Broker} invokes
25 * {@link NotificationListener#onNotification(CompositeNode)}
28 public interface NotificationPublishService extends NotificationService {
30 * Publishes a notification.
32 * Notification type is determined by the
33 * {@link CompositeNode#getNodeType()} of the
34 * <code>notification<code> parameter.
37 * Notification to publish
39 void publish(CompositeNode notification);