Bug 8568: Remove deprecated MountProviderService APIs
[controller.git] / opendaylight / md-sal / sal-binding-api / src / main / java / org / opendaylight / controller / sal / binding / api / RpcConsumerRegistry.java
index 615acd3195c8a99ed5b5f372f53dee46d5faac7b..d31a2fe3277694db6baf2a551ce5e3584670c399 100644 (file)
@@ -7,6 +7,7 @@
  */
 package org.opendaylight.controller.sal.binding.api;
 
+import org.opendaylight.controller.md.sal.binding.api.BindingService;
 import org.opendaylight.yangtools.yang.binding.RpcService;
 
 /**
@@ -16,7 +17,7 @@ import org.opendaylight.yangtools.yang.binding.RpcService;
  * RPC implementations are registered using the {@link RpcProviderRegistry}.
  *
  */
-public interface RpcConsumerRegistry extends BindingAwareService {
+public interface RpcConsumerRegistry extends BindingAwareService, BindingService {
     /**
      * Returns an implementation of a requested RPC service.
      *
@@ -48,7 +49,7 @@ public interface RpcConsumerRegistry extends BindingAwareService {
      * to listen for Rpc Result. This will asynchronously listen for future result in executor and
      * will not block current thread.
      *
-     * <pre>
+     * {@code
      *   final Future<RpcResult<SomeRpcOutput>> future = someRpcService.someRpc( ... );
      *   Futures.addCallback(JdkFutureAdapters.listenInThreadPool(future), new FutureCallback<RpcResult<SomeRpcOutput>>() {
      *
@@ -60,7 +61,9 @@ public interface RpcConsumerRegistry extends BindingAwareService {
      *          // RPC failed
      *       }
      *   );
-     * </pre>
+     * }
+     * }
+     *
      * @param serviceInterface the interface of the RPC Service. Typically this is an interface generated
      *                         from a YANG model.
      * @return the proxy for the requested RPC service. This method never returns null.