Promote Ivan Hraško to a committer
[netconf.git] / netconf / netconf-notifications-api / src / main / java / org / opendaylight / netconf / notifications / NetconfNotificationRegistry.java
1 /*
2  * Copyright (c) 2015 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.netconf.notifications;
9
10 import org.eclipse.jdt.annotation.NonNull;
11 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.netconf.notification._1._0.rev080714.StreamNameType;
12 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.netmod.notification.rev080714.netconf.Streams;
13 import org.opendaylight.yangtools.concepts.Registration;
14
15 public interface NetconfNotificationRegistry {
16     /**
17      * Add listener for a certain notification type.
18      */
19     @NonNull Registration registerNotificationListener(@NonNull StreamNameType stream,
20         @NonNull NetconfNotificationListener listener);
21
22     /**
23      * Check stream availability.
24      */
25     boolean isStreamAvailable(StreamNameType streamNameType);
26
27     /**
28      * Get all the streams available.
29      */
30     Streams getNotificationPublishers();
31 }