Updated implementation of broker (data services, generated code), added Integration...
[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     /**
19      * Deprecated. Use {@link #publish(Notification)}.
20      * 
21      * @param notification
22      */
23     @Deprecated
24     void notify(Notification notification);
25
26     /**
27      * Deprecated. Use {@link #publish(Notification,ExecutorService)}.
28      * 
29      * @param notification
30      */
31     @Deprecated
32     void notify(Notification notification, ExecutorService service);
33
34     /**
35      * Publishes a notification.
36      * 
37      * @param Notification notification to publish.
38      * 
39      */
40     @Override
41     void publish(Notification notification);
42
43     /**
44      * Publishes a notification, listener calls are done in provided executor.
45      * 
46      */
47     @Override
48     void publish(Notification notification, ExecutorService service);
49 }