Migrate OSGI compendium reference
[controller.git] / opendaylight / md-sal / sal-dom-api / src / main / java / org / opendaylight / controller / md / sal / dom / api / DOMRpcAvailabilityListener.java
index a62f79db0bf71c1b1baf6019053154f9a99528a6..93db2a0962f283c2ca1669b94d1a1756fbcc945c 100644 (file)
@@ -9,7 +9,7 @@ package org.opendaylight.controller.md.sal.dom.api;
 
 import java.util.Collection;
 import java.util.EventListener;
-import javax.annotation.Nonnull;
+import org.eclipse.jdt.annotation.NonNull;
 
 /**
  * An {@link EventListener} used to track RPC implementations becoming (un)available a {@link DOMRpcService}. Note that
@@ -47,21 +47,24 @@ import javax.annotation.Nonnull;
  * some other RPC or action, or similar, which can separately fail. If a sub-request fails, such implementations are
  * required do report {@link DOMRpcImplementationNotAvailableException} as the invocation result, with the underlying
  * failure being linked as a cause.
+ *
+ * @deprecated Use {@link org.opendaylight.mdsal.dom.api.DOMRpcAvailabilityListener} instead.
  */
+@Deprecated(forRemoval = true)
 public interface DOMRpcAvailabilityListener extends EventListener {
     /**
      * Method invoked whenever an RPC type becomes available.
      *
      * @param rpcs RPC types newly available
      */
-    void onRpcAvailable(@Nonnull Collection<DOMRpcIdentifier> rpcs);
+    void onRpcAvailable(@NonNull Collection<DOMRpcIdentifier> rpcs);
 
     /**
      * Method invoked whenever an RPC type becomes unavailable.
      *
      * @param rpcs RPC types which became unavailable
      */
-    void onRpcUnavailable(@Nonnull Collection<DOMRpcIdentifier> rpcs);
+    void onRpcUnavailable(@NonNull Collection<DOMRpcIdentifier> rpcs);
 
     /**
      * Implementation filtering method. This method is useful for forwarding RPC implementations,