Deprecate controller APIs
[controller.git] / opendaylight / md-sal / sal-dom-api / src / main / java / org / opendaylight / controller / md / sal / dom / api / DOMRpcService.java
index 48f6ab6500e0e4f1d8ab185431a71a513cfe9b40..e8826de060d48d82a4c8a9f26d36f47611a2a368 100644 (file)
@@ -19,7 +19,10 @@ import org.opendaylight.yangtools.yang.model.api.SchemaPath;
  * service is that of a dynamic router, where the set of available RPC services can change
  * dynamically. The service allows users to add a listener to track the process of
  * RPCs becoming available.
+ *
+ * @deprecated Use {@link org.opendaylight.mdsal.dom.api.DOMRpcService} instead
  */
+@Deprecated
 public interface DOMRpcService extends DOMService {
     /**
      * Initiate invocation of an RPC. This method is guaranteed to not block on any external
@@ -31,21 +34,26 @@ public interface DOMRpcService extends DOMService {
      *         or report a subclass of {@link DOMRpcException} reporting a transport
      *         error.
      */
-    @Nonnull CheckedFuture<DOMRpcResult, DOMRpcException> invokeRpc(@Nonnull SchemaPath type, @Nullable NormalizedNode<?, ?> input);
+    @Nonnull CheckedFuture<DOMRpcResult, DOMRpcException> invokeRpc(@Nonnull SchemaPath type,
+            @Nullable NormalizedNode<?, ?> input);
 
     /**
      * Register a {@link DOMRpcAvailabilityListener} with this service to receive notifications
      * about RPC implementations becoming (un)available. The listener will be invoked with the
      * current implementations reported and will be kept uptodate as implementations come and go.
      *
-     * Users should note that using a listener does not necessarily mean that {@link #invokeRpc(SchemaPath, NormalizedNode)}
-     * will not report a failure due to {@link DOMRpcImplementationNotAvailableException} and
-     * need to be ready to handle it. Implementations are encouraged to take reasonable precautions
-     * to prevent this scenario from occurring.
+     * <p>
+     * Users should note that using a listener does not necessarily mean that
+     * {@link #invokeRpc(SchemaPath, NormalizedNode)} will not report a failure due to
+     * {@link DOMRpcImplementationNotAvailableException} and need to be ready to handle it.
+     *
+     * <p>
+     * Implementations of this interface are encouraged to take reasonable precautions to prevent this scenario from
+     * occurring.
      *
      * @param listener {@link DOMRpcAvailabilityListener} instance to register
-     * @return A {@link DOMRpcAvailabilityListenerRegistration} representing this registration. Performing
-     *         a {@link DOMRpcAvailabilityListenerRegistration#close()} will cancel it. Returned object
+     * @return A {@link ListenerRegistration} representing this registration. Performing
+     *         a {@link ListenerRegistration#close()} will cancel it. Returned object
      *         is guaranteed to be non-null.
      */
     @Nonnull <T extends DOMRpcAvailabilityListener> ListenerRegistration<T> registerRpcListener(@Nonnull T listener);