Merge "Bug-2674 Notification support for netconf testtool"
[controller.git] / opendaylight / md-sal / sal-dom-api / src / main / java / org / opendaylight / controller / md / sal / dom / api / DOMRpcAvailabilityListener.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.controller.md.sal.dom.api;
9
10 import java.util.Collection;
11 import java.util.EventListener;
12 import javax.annotation.Nonnull;
13
14 /**
15  * An {@link EventListener} used to track RPC implementations becoming (un)available
16  * to a {@link DOMRpcService}.
17  */
18 public interface DOMRpcAvailabilityListener extends EventListener {
19     /**
20      * Method invoked whenever an RPC type becomes available.
21      *
22      * @param rpcs RPC types newly available
23      */
24     void onRpcAvailable(@Nonnull Collection<DOMRpcIdentifier> rpcs);
25
26     /**
27      * Method invoked whenever an RPC type becomes unavailable.
28      *
29      * @param rpcs RPC types which became unavailable
30      */
31     void onRpcUnavailable(@Nonnull Collection<DOMRpcIdentifier> rpcs);
32 }