922acb9821f45d6598b1b39606cd04a82681ec3d
[controller.git] / opendaylight / md-sal / sal-binding-api / src / main / java / org / opendaylight / controller / sal / binding / api / NotificationService.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.sal.binding.api;
9
10 import org.opendaylight.controller.md.sal.common.api.notify.NotificationSubscriptionService;
11 import org.opendaylight.yangtools.concepts.Registration;
12 import org.opendaylight.yangtools.yang.binding.Notification;
13
14 public interface NotificationService extends BindingAwareService {
15
16     @Deprecated
17     <T extends Notification> void addNotificationListener(Class<T> notificationType, NotificationListener<T> listener);
18
19     @Deprecated
20     void addNotificationListener(org.opendaylight.yangtools.yang.binding.NotificationListener listener);
21
22     @Deprecated
23     void removeNotificationListener(org.opendaylight.yangtools.yang.binding.NotificationListener listener);
24
25     @Deprecated
26     <T extends Notification> void removeNotificationListener(Class<T> notificationType, NotificationListener<T> listener);
27
28     <T extends Notification> Registration<NotificationListener<T>> registerNotificationListener(
29             Class<T> notificationType, NotificationListener<T> listener);
30
31
32     Registration<org.opendaylight.yangtools.yang.binding.NotificationListener> registerNotificationListener(
33             org.opendaylight.yangtools.yang.binding.NotificationListener listener);
34 }