*/
package org.opendaylight.controller.sal.binding.api;
+import org.opendaylight.controller.md.sal.binding.api.BindingService;
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.
*
* 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>>() {
*
* // 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.