64aab6ec0c76c782de761fd1413f02d0e84d15f1
[controller.git] / opendaylight / md-sal / sal-binding-api / src / main / java / org / opendaylight / controller / sal / binding / api / NotificationProviderService.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 java.util.concurrent.ExecutorService;
11
12 import org.opendaylight.controller.md.sal.common.api.notify.NotificationPublishService;
13 import org.opendaylight.yangtools.concepts.Registration;
14 import org.opendaylight.yangtools.yang.binding.Notification;
15
16 public interface NotificationProviderService extends NotificationService, NotificationPublishService<Notification> {
17
18     @Deprecated
19     void notify(Notification notification);
20
21     @Deprecated
22     void notify(Notification notification, ExecutorService service);
23
24     @Override
25     void publish(Notification notification);
26
27     @Override
28     void publish(Notification notification, ExecutorService service);
29     
30     @Override
31     public <T extends Notification> Registration<NotificationListener<T>> registerNotificationListener(
32             Class<T> notificationType, NotificationListener<T> listener);
33     
34     @Override
35     public Registration<org.opendaylight.yangtools.yang.binding.NotificationListener> registerNotificationListener(
36             org.opendaylight.yangtools.yang.binding.NotificationListener listener);
37 }