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.BrokerService;
11 import org.opendaylight.yangtools.concepts.Registration;
12 import org.opendaylight.yangtools.yang.common.QName;
16 * NotificationService provides access to the notification functionality of the
19 * NotificationService allows for consumption of notifications by registering
20 * implementations of NotificationListener.
22 * The registration of notification listeners could be done by:
24 * <li>returning an instance of implementation in the return value of
25 * {@link org.opendaylight.controller.sal.core.api.Provider#getProviderFunctionality()}
26 * <li>passing an instance of implementation and {@link QName} of an RPC as an
28 * {@link org.opendaylight.controller.sal.core.api.Broker.ProviderSession#addRpcImplementation(QName, org.opendaylight.controller.sal.core.api.RpcImplementation)}
33 public interface NotificationService extends BrokerService {
36 * Registers a notification listener for supplied notification type.
41 Registration<NotificationListener> addNotificationListener(QName notification,
42 NotificationListener listener);