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.yangtools.yang.data.api.CompositeNode;
13 * Notification Publishing Service
15 * The simplified process of the notification publishing is following:
18 * <li> {@link org.opendaylight.controller.sal.core.api.Provider} invokes {@link #sendNotification(CompositeNode)}
19 * <li> {@link org.opendaylight.controller.sal.core.api.Broker} finds {@link NotificationListener}s which subscribed for
20 * the notification type.
22 * <li>For each subscriber {@link org.opendaylight.controller.sal.core.api.Broker} invokes
23 * {@link NotificationListener#onNotification(CompositeNode)}
26 public interface NotificationPublishService extends NotificationService {
28 * Publishes a notification.
30 * Notification type is determined by the
31 * {@link CompositeNode#getNodeType()} of the
32 * <code>notification<code> parameter.
35 * Notification to publish
37 void publish(CompositeNode notification);