Integrate netconf-notifications-api into netconf-server
[netconf.git] / protocol / netconf-server / src / main / java / org / opendaylight / netconf / server / api / notifications / NetconfNotificationListener.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.server.api.notifications;
9
10 import org.opendaylight.netconf.api.messages.NotificationMessage;
11 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.netconf.notification._1._0.rev080714.StreamNameType;
12
13 /**
14  * Generic listener for NETCONF notifications.
15  */
16 public interface NetconfNotificationListener {
17     /**
18      * Callback used to notify the listener about any new notification.
19      */
20     void onNotification(StreamNameType stream, NotificationMessage notification);
21 }